Esempio n. 1
0
 public NavBarTile(MainWindow owner, IZotApp app)
 {
     window = owner;
     InitializeComponent();
     mainBtn.Title  = app.AppName;
     this.app       = app;
     mainBtn.Click += new RoutedEventHandler(owner.ReOpen_App_FromToolBar);
 }
Esempio n. 2
0
        private void StartApp(IZotApp app)
        {
            IZotApp zotApp = app;

            visibleTool.Content = app;

            Tools.Add(zotApp); //La ventana tiene que mantener la referencia de todas las herramientas abiertas

            // Mostrar en la barra de tareas
            var toolTile = new NavBarTile(this, app)
            {
                Width             = Double.NaN, //auto
                Height            = 100,
                VerticalAlignment = VerticalAlignment.Top,
                Margin            = new Thickness(0, 100 * toolBar.Children.Count, 0, 0)
            };

            ;
            toolBar.Children.Add(toolTile);


            visibleTool.Visibility = Visibility.Visible;
        }
Esempio n. 3
0
 public void RemoveApp(IZotApp app)
 {
     visibleTool.Content    = null;
     visibleTool.Visibility = Visibility.Collapsed;
     Tools.Remove(app);
 }