datafilter bind with custom property

1 posts, 0 answers
  1. mehmood ahmed
    mehmood ahmed avatar
    7 posts
    Member since:
    Dec 2009

    Posted 10 Dec 2011 Link to this post


    Hi..

    If i want to bind through code behind  and want to bind non predefined dependecy property instead i want to create my own dependency property then will that work.

    for example;

    This example to bind Source property of DataPager:

    <sdk:RadDataFilter x:Name="radFilter" Source="{Binding Items, ElementName=datagridQuotationQueue}" />
    radFilter.SetBinding(RadDataFilter.SourceProperty, new Binding("Items") { Source = datagridQuotationQueue })

    Suppose i have my own customed collection

    public ObservableCollection<string> Names{set;get;} 

    and i want to give it instead of Items

    How can i achieve it by making it dependency propoerty (Names)?

     

Back to Top