DataSource for Entity Framework in WPF
C1.WPF.Data.Entities Namespace / C1DataSource Class

In This Topic
    C1DataSource Class
    In This Topic
    A data source control that simplifies data binding of GUI controls to data in a C1.Data.Entities.EntityClientCache. Can be used to bind multiple controls to different queries.
    Object Model
    C1DataSource Class
    Public Class C1DataSource 
       Inherits System.Windows.Controls.Control
    public class C1DataSource : System.Windows.Controls.Control 
    To bind a control to data in a C1.Data.Entities.EntityClientCache, add a C1DataSource to a XAML file, specify the context type, populate the ViewSources collection with C1.Data.Entities.EntityViewSource objects to define views (based on queries), and bind GUI controls like this: <DataGrid ItemsSource="{Binding Customers, ElementName=c1DataSource}"/> where Customers is the name of an C1.Data.Entities.EntityViewSource in the ViewSources collection and c1DataSource is the name of the C1DataSource.
    Inheritance Hierarchy


    See Also