Recommended

Skip Navigation LinksHome / Search

Search

 
Results Per Page

Found 2 results for data source.
Date between: <not defined> and <not defined>
Search in: News , Articles , Tips , Shows , Showcase , Books

Order by Publish Date   Ascending Title   Rating  

  • Blendable MVVM: WCF and Asynch Data Sources

    0 comments  /  posted by  Silverlight Show  on  Oct 28, 2009 (7 months ago)
    Tags: MVVM , WCF , Data Source

    The next topic that Nigel Sampson discusses in his series called "Blendable MVVM" is about MVVM with WCF and Asynchronous Data Sources.

    In the previous posts we've been retrieving our data from a synchronous data source, for the most part in Silverlight we'll be retrieving data sources from aseparate server, in this case through a WCF Service. Silverlight has a restriction that all network calls must be asynchronous in order to avoid locking up the browser UI (a good thing). It does however make the code a little more complicated.



  • 1 comments  /  posted by  Denislav Savkov  on  Aug 29, 2008 (more than a year ago)


    Currently there is no way to do that by using binding. Instead, you can make a List<> and add the values from the enumeration in the list. Then you can use this list as data source.

    C#

    List<Dock> enumDataSource = new List<Dock>() { Dock.Left, Dock.Top, Dock.Right, Dock.Bottom };
    this.lbDock.ItemsSource = enumDataSource;

    where lbDock is of type ListBox.

    That's it!


Help us make SilverlightShow even better and win a free t-shirt. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need a material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)