Silverlight UserControl DependencyProperty in binding
-
Hi, This morning I thought I'll 'quickly' do a POC on a nice thought. The thought involved creating a
UserControl
, adding aDependencyProperty
to the control, setting the value of the property by binding it to a property I have on a class (in XAML declaration), the instance of the class coming from anObservableCollection
and the control is theItemTemplate
in a ListBox, very simple... until theDependencyProperty
never got set by the binding... I have gone through more than 20 supposed solutions, not 1 of them working when I implement it... If I bind a static resource to the property it works... Can someone please build me a simple Silverlight project that achieves the above so that I can use it to regain my sanity... Please do not paste code snippets in this response, please send me the zip of the project, I've gone through too many snippets today (I suspect that my sanity stayed behind in one of the snippets :) ) (If I can be pickey, SL4 in VS2010 please)____________________________________________________________ Be brave little warrior, be VERY brave
-
Hi, This morning I thought I'll 'quickly' do a POC on a nice thought. The thought involved creating a
UserControl
, adding aDependencyProperty
to the control, setting the value of the property by binding it to a property I have on a class (in XAML declaration), the instance of the class coming from anObservableCollection
and the control is theItemTemplate
in a ListBox, very simple... until theDependencyProperty
never got set by the binding... I have gone through more than 20 supposed solutions, not 1 of them working when I implement it... If I bind a static resource to the property it works... Can someone please build me a simple Silverlight project that achieves the above so that I can use it to regain my sanity... Please do not paste code snippets in this response, please send me the zip of the project, I've gone through too many snippets today (I suspect that my sanity stayed behind in one of the snippets :) ) (If I can be pickey, SL4 in VS2010 please)____________________________________________________________ Be brave little warrior, be VERY brave
Anyone??? PLEASE HELP!
____________________________________________________________ Be brave little warrior, be VERY brave