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.bindinglist1[wpfapplication1.myinterfaceimplementation]' , 'system.componentmodel.bindinglist1[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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -