This is a migrated thread and some comments may be shown as answers.

datafilter bind with custom property

0 Answers 55 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
mehmood ahmed
Top achievements
Rank 1
mehmood ahmed asked on 10 Dec 2011, 12:40 PM

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)?

 

No answers yet. Maybe you can help?

Tags
DataFilter
Asked by
mehmood ahmed
Top achievements
Rank 1
Share this question
or