A data source control that simplifies data binding of GUI controls
to data in a EntityClientCache. Can be used to bind multiple controls to different queries.
Namespace:
C1.WPF.Data.EntitiesAssembly: C1.WPF.Data.Entity (in C1.WPF.Data.Entity.dll)
Syntax
C# |
---|
[DefaultMemberAttribute("Item")] [ContentPropertyAttribute("ViewSources")] [LicenseProviderAttribute] public class C1DataSource : Control, IC1DataSource, ISupportInitialize, ICustomTypeDescriptor, INotifyPropertyChanged |
Visual Basic |
---|
<DefaultMemberAttribute("Item")> _ <ContentPropertyAttribute("ViewSources")> _ <LicenseProviderAttribute> _ Public Class C1DataSource _ Inherits Control _ Implements IC1DataSource, ISupportInitialize, ICustomTypeDescriptor, INotifyPropertyChanged |
Remarks
To bind a control to data in a EntityClientCache,
add a C1DataSource to a XAML file,
specify the context type,
populate the ViewSources collection with EntityViewSource objects to define views (based on queries),
and bind GUI controls like this:
where Customers is the name of an EntityViewSource in the ViewSources collection
and c1DataSource is the name of the C1DataSource.
Copy CodeXAML
<DataGrid ItemsSource="{Binding Customers, ElementName=c1DataSource}"/> |
Inheritance Hierarchy
System..::..Object
System.Windows.Threading..::..DispatcherObject
System.Windows..::..DependencyObject
System.Windows.Media..::..Visual
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
C1.WPF.Data.Entities..::..C1DataSource
System.Windows.Threading..::..DispatcherObject
System.Windows..::..DependencyObject
System.Windows.Media..::..Visual
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
C1.WPF.Data.Entities..::..C1DataSource