Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Data Context with Carousel
posted

If you have created a Data Context using Linq to SQL, how do you bind it with a carousel?  Meaning, how do you read the data from the database and display the various pieces to various textboxes?  If possible, please show in XAML and in procedural code.

 Thanks.

Parents
  • 8576
    Offline posted
    Hi -
     
    The XamDataCarousel control exposes a property called DataSource of type IEnumerable - you can bind a datasource to this property exactly as you would with the ItemsControl.ItemsSource property.  The default behavior of the XamDataCarousel is to examine the data it is bound to and automatically discover all the fields contained in the data source including fields within each hierarchical level of data (if nested data is present in the datasource).  Any data source supported by the ItemsControl is supported by the XamDataCarousel.
     
    Joe Modica
     
Reply Children