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.Entities
Assembly:  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:
Copy CodeXAML
<DataGrid ItemsSource="{Binding Customers, ElementName=c1DataSource}"/>
where Customers is the name of an EntityViewSource in the ViewSources collection and c1DataSource is the name of the C1DataSource.

Inheritance Hierarchy

See Also