Example #1
0
 private void SetFullScr()
 {
     ResizableArea.ClearValue(Border.BorderBrushProperty);
     ResizableArea.ClearValue(Border.BorderThicknessProperty);
     ResizableArea.ClearValue(Border.HorizontalAlignmentProperty);
     ResizableArea.ClearValue(Border.VerticalAlignmentProperty);
     ResizableArea.ClearValue(Border.WidthProperty);
     ResizableArea.ClearValue(Border.HeightProperty);
     ResizableArea.ClearValue(Border.MarginProperty);
 }
    void OnEnable()
    {
        resizableArea         = new ResizableArea();
        resizableArea.minSize = new Vector2(LeftMinWidth, 50);
        resizableArea.side    = 10;
        resizableArea.EnableSide(UIDirection.Right);
        resizableArea.SideOffset[UIDirection.Right] = resizableArea.side / 2;

        searchField  = new SearchField();
        menuTreeView = BuildMenuTree(treeViewState);
        menuTreeView.Reload();
    }