Exemple #1
0
 public void AddToolButton(ToolButton button, string category)
 {
     button.DrawingHost = DrawingHost;
     var panel = GetTabPanelByCategory(button, category);
     panel.Panel.Children.Add(button);
     button.ParentPanel = panel;
 }
Exemple #2
0
        public void AddToolButton(ToolButton button, string category)
        {
            button.DrawingHost = DrawingHost;
            var panel = GetTabPanelByCategory(button, category);

            panel.Panel.Children.Add(button);
            button.ParentPanel = panel;
        }
Exemple #3
0
        public TabPanel GetTabPanelByCategory(ToolButton button, string category)
        {
            var result = GetPanel(category);

            if (result == null)
            {
                result = CreateTabPanel(button, category);
            }

            return(result);
        }
Exemple #4
0
        private TabPanel CreateTabPanel(ToolButton button, string category)
        {
            var result = new TabPanel()
            {
                Category      = category,
                Panel         = new WrapPanel(),
                HeaderContent = (Settings.ShowIconInTabPanelHeader) ? new ButtonGrid(button.CloneIcon(), category) : new ButtonGrid(null, category)
            };

            Items.Add(result);
            return(result);
        }
Exemple #5
0
 private TabPanel CreateTabPanel(ToolButton button, string category)
 {
     var result = new TabPanel()
     {
         Category = category,
         Panel = new WrapPanel(),
         HeaderContent = (Settings.ShowIconInTabPanelHeader) ? new ButtonGrid(button.CloneIcon(), category) : new ButtonGrid(null, category)
     };
     Items.Add(result);
     return result;
 }
Exemple #6
0
        public TabPanel GetTabPanelByCategory(ToolButton button, string category)
        {
            var result = GetPanel(category);

            if (result == null)
            {
                result = CreateTabPanel(button, category);
            }

            return result;
        }