DomainDataSource.DesignData Property

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Gets or sets the data to use at design time.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.DomainServices (in System.Windows.Controls.DomainServices.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
<BindableAttribute(False)> _
Public Property DesignData As IEnumerable
    Get
    Set
'Usage
Dim instance As DomainDataSource
Dim value As IEnumerable

value = instance.DesignData

instance.DesignData = value
[BrowsableAttribute(false)]
[BindableAttribute(false)]
public IEnumerable DesignData { get; set; }
[BrowsableAttribute(false)]
[BindableAttribute(false)]
public:
property IEnumerable^ DesignData {
    IEnumerable^ get ();
    void set (IEnumerable^ value);
}
[<BrowsableAttribute(false)>]
[<BindableAttribute(false)>]
member DesignData : IEnumerable with get, set
function get DesignData () : IEnumerable
function set DesignData (value : IEnumerable)

Property Value

Type: System.Collections.IEnumerable
The data to use at design time.

Remarks

This property allows for support of design-time sample data and it also enhances the design-time support of the DomainDataSource control.

The DesignData property accepts an IEnumerable{T} for any entity type and, at design-time, provides that value to the Data property.

See Also

Reference

DomainDataSource Class

System.Windows.Controls Namespace

Other Resources

DomainDataSource