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
Post a Comment