xaml - Problem set ItemSource to static property in WPF -


i have static property in class need set itemsource treeview control.

some thing that:

<treeview x:name="segtreeview" margin="199,55,240,0" verticalalignment="top" height="88"     itemssource="{x:static local:stestframecontrol._sobserverlist}"> 

when run app run time exception:

cannot convert value in attribute 'itemssource' object of type 'system.windows.markup.staticextension'. error @ object 'segmtreeview' in markup file 'dclient;component/stestframecontrol.xaml' line 61 position 99.

tries solution: binding static property

with no help.

thanks in advance, evyatar


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -