binding - WPF-Databinding via DependencyProperty and Interfaces -
i new wpf , tryed write me custom usercontrol. therefore added dependencyproperty
of type bindinglist named mycomboboxsource in custom control have combobox binds itemssource list.
in mainwindow created bindinglist<myinterfaceimplementation>
, bind property mycomboboxsource list.
when not use interface use myinterfaceimplementation in custom usercontrol works fine. using interface following error:
cannot create default converter perform 'one-way' conversions between types 'system.componentmodel.bindinglist
1[wpfapplication1.myinterfaceimplementation]' , 'system.componentmodel.bindinglist
1[wpfapplication1.imyinterface]'
but wasn't able find out how create such converter. tried implement ivalueconverter
, add converter when setting mycomboboxsource-property in mainwindow - nothing works.
so how can solve this? much! määx.
Comments
Post a Comment