Atlas declarative blocks

Published Friday, September 16, 2005 12:21 AM

I have been playing with Atlas and running through the hands on labs. In lab 2, you create some 'Atlas declarative blocks' to associate async invocations with controls on your form and with a web service. It looks something like (from one of the labs) :-

       <textBox id="SearchKey" />
        <serviceMethod id="helloService" url="HelloWorldService.asmx" methodName="HelloWorld">
        <bindings>
          <binding dataContext="SearchKey" dataPath="text"
            property="parameters" propertyKey="query" />
        </bindings>
        <completed>
          <invokeMethod target="resultsBinding"
            method="evaluateIn" />
        </completed>
      </serviceMethod>

        <button targetElement="SearchButton">
        <click>
            <invokeMethod target="helloService" method="invoke" />
        </click>
        </button>

        <label targetElement="results">
        <bindings>
            <binding id="resultsBinding" dataContext="helloService"
            dataPath="response.object" property="text"
            automatic="false" />
        </bindings>
        </label>

All these service bindings remind me of the bindings used in Indigo, I dont suppose its any real accident either. These definitions are placed in a <script type="text/xml-script"> which I found quite odd at first but am defintely getting the hang of it.

by Glav

Comments

# Nikhil Kothari said on Thursday, September 15, 2005 1:18 PM

The bindings are a lot closer to bindings from Avalon and XAML.

# Paul Glavich said on Thursday, September 15, 2005 8:27 PM

Thanks Nikhil. I haven't really played with Avalon and XAML much but will make a point of investigating the bindings. It makes sense that Atlas bindings are very close to the Avalon/XAML bindings.

Leave a Comment

(required) 
(required) 
(optional)
(required) 

This Blog

Syndication