Beispiel #1
0
 public void displayToolBar(Misp.Kernel.Ui.Base.ToolBar toolBar)
 {
     if (ToolBar != null)
     {
         toolBarGrid.Children.Remove(ToolBar);
     }
     ToolBar = toolBar;
     if (toolBar != null)
     {
         toolBar.Background          = Brushes.Transparent;
         toolBar.HorizontalAlignment = HorizontalAlignment.Right;
         toolBar.VerticalAlignment   = VerticalAlignment.Center;
         toolBar.Margin = new Thickness(0, 4, 10, -45);
         Grid.SetRow(toolBar, 0);
         Grid.SetColumn(toolBar, 1);
         toolBarGrid.Children.Add(toolBar);
     }
 }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="controller"></param>
 public ToolBarHandlerBuilder(Controllable controller)
 {
     this.Controller = controller;
     ToolBar         = Controller.ToolBar;
 }