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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

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

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