WPF: applying a converter to ItemsSource

Can a converter be applied to a control data source in xaml?

or maybe there is another way to do this.

Basically, I have a custom control that accepts a specific type of object. this object is closely related to this control. I do not want to convert this type to the whole model of my view. Therefore, I would like to be able to bind to the usual properties, such as List, and automatically translate it to my object using the converter.

I tried something like this.

ItemsSource="{Binding CurrentTables, Converter={x:Static cconverters:SpyFilterDataObjectConverter}}" 
+3
source share
2 answers

, , . , . - - , ( INotifyCollectionChanged) , .

+1

x:Static namespace:Type.StaticMember, .

Application.Resources App.xaml, , .

+1

All Articles