Hi,
I would create a UserControl called ListUserControl, it should contains RadgridView and other telerik controls. Ok.
But, what is the best way to wrap dependecy properties of GridView?
In primis: ItemSource, I created a dependency property in my user control, but how can I link this property to ItemSource of gridview, what is the best way to do this?
public partial class ListViewUserControl : UserControl { public ListViewUserControl() { InitializeComponent(); } public object ItemSource { get { return (object) GetValue(ItemSourceProperty); } set { SetValue(ItemSourceProperty, value); } } // Using a DependencyProperty as the backing store for ItemSource. This enables animation, styling, binding, etc... public static readonly DependencyProperty ItemSourceProperty = DependencyProperty.Register(name: "ItemSource", propertyType: typeof(object), ownerType: typeof(object), typeMetadata: new PropertyMetadata(0)); }