public static SharpTreeViewTextSearch GetInstance(SharpTreeView sharpTreeView) { var textSearch = (SharpTreeViewTextSearch)sharpTreeView.GetValue(TextSearchInstanceProperty); if (textSearch == null) { textSearch = new SharpTreeViewTextSearch(sharpTreeView); sharpTreeView.SetValue(TextSearchInstancePropertyKey, textSearch); } return(textSearch); }
public LocalVarPad() { var res = new CommonResources(); res.InitializeComponent(); tree = new SharpTreeView(); tree.Root = new SharpTreeNode(); tree.ShowRoot = false; tree.View = (GridView)res["variableGridView"]; tree.ItemContainerStyle = (Style)res["itemContainerStyle"]; tree.SetValue(GridViewColumnAutoSize.AutoWidthProperty, "50%;25%;25%"); WindowsDebugger.RefreshingPads += RefreshPad; RefreshPad(); }