public INewTabHost<Window> GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source)
 {
     var view = new BoundExampleWindow();
     var model = new BoundExampleModel();
     view.DataContext = model;
     return new NewTabHost<Window>(view, view.InitialTabablzControl);
 }
        public INewTabHost <Window> GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source)
        {
            var view  = new BoundExampleWindow();
            var model = new BoundExampleModel();

            view.DataContext = model;
            return(new NewTabHost <Window>(view, view.InitialTabablzControl));
        }
Exemplo n.º 3
0
        public static void Main(string[] args)
        {
            var app = new App {
                ShutdownMode = ShutdownMode.OnLastWindowClose
            };

            app.InitializeComponent();

            new BasicExampleMainWindow
            {
                DataContext = new BasicExampleMainModel()
            }.Show();

            var boundExampleModel = new BoundExampleModel(
                new HeaderedItemViewModel {
                Header = "Fixed", Content = "There is a dragablz:DragablzItemsControl.FixedItemCount of 1, so this header is fixed!"
            },
                new HeaderedItemViewModel {
                Header = "MDI Demo", Content = new MdiExample()
            },
                new HeaderedItemViewModel {
                Header = "Layout Info", Content = new LayoutManagementExample {
                    DataContext = new LayoutManagementExampleViewModel()
                }
            },
                new HeaderedItemViewModel {
                Header = new CustomHeaderViewModel {
                    Header = "Header"
                }, Content = "This tab illustrates how an individual header can be customised, without having to change the DragablzItem tab header template."
            },
                new HeaderedItemViewModel {
                Header = "Tues", Content = "Tuesday's child is full of grace"
            }                                                                                              //,
                //new HeaderedItemViewModel { Header = "Wed", Content = "Wednesday's child is full of woe" }//,
                //new HeaderedItemViewModel { Header = "Thu", Content = "Thursday's child has far to go" },
                //new HeaderedItemViewModel { Header = "Fri", Content = "Friday's child loving and giving" }//,
                //new HeaderedItemViewModel { Header = "Sat", Content = "Saturday's child works hard for a living" },
                //new HeaderedItemViewModel { Header = "Sun", Content = "Sunday's child is awkwardly not fitting into this demo" }
                );

            boundExampleModel.ToolItems.Add(
                new HeaderedItemViewModel {
                Header = "January", Content = "Welcome to the January tool/float item."
            });
            boundExampleModel.ToolItems.Add(
                new HeaderedItemViewModel {
                Header = "July", Content = "Welcome to the July tool/float item."
            });

            new BoundExampleWindow()
            {
                DataContext = boundExampleModel
            }.Show();

            new QuickStartWindow().Show();

            app.Run();
        }
Exemplo n.º 4
0
        public static void Main(string[] args)
        {
            var app = new App {
                ShutdownMode = ShutdownMode.OnLastWindowClose
            };

            app.InitializeComponent();

            new BasicExampleMainWindow
            {
                DataContext = new BasicExampleMainModel()
            };//.Show();

            var boundExampleModel = new BoundExampleModel(
                new SimpleViewModel {
                Name = "Mon", SimpleContent = "Monday's child is fair of face"
            },
                new SimpleViewModel {
                Name = "MDI Demo", SimpleContent = new MdiExample()
            },
                new SimpleViewModel {
                Name = "Layout Info", SimpleContent = new LayoutManagementExample {
                    DataContext = new LayoutManagementExampleViewModel()
                }
            },
                new SimpleViewModel {
                Name = "Tues", SimpleContent = "Tuesday's child is full of grace"
            },
                new SimpleViewModel {
                Name = "Wed", SimpleContent = "Wednesday's child is full of woe"
            },
                new SimpleViewModel {
                Name = "Thu", SimpleContent = "Thursday's child has far to go"
            },
                new SimpleViewModel {
                Name = "Fri", SimpleContent = "Friday's child loving and giving"
            }                                                                                           //,
                //new SimpleViewModel { Name = "Sat", SimpleContent = "Saturday's child works hard for a living" },
                //new SimpleViewModel { Name = "Sun", SimpleContent = "Sunday's child is awkwardly not fitting into this demo" }
                );

            /*
             * boundExampleModel.ToolItems.Add(
             *  new SimpleViewModel { Name = "January", SimpleContent = "Welcome to the January tool/float item." });
             * boundExampleModel.ToolItems.Add(
             *  new SimpleViewModel { Name = "July", SimpleContent = "Welcome to the July tool/float item." });
             */

            new BoundExampleWindow()
            {
                DataContext = boundExampleModel
            }.Show();

            //new QuickStartWindow().Show();

            app.Run();
        }
Exemplo n.º 5
0
        public static void Main(string[] args)
        {
            var app = new App {
                ShutdownMode = ShutdownMode.OnLastWindowClose
            };

            app.InitializeComponent();

            new BasicExampleMainWindow
            {
                DataContext = new BasicExampleMainModel()
            }.Show();

            var boundExampleModel = new BoundExampleModel(
                new SimpleViewModel {
                Name = "Mon", SimpleContent = "Monday"
            },
                new SimpleViewModel {
                Name = "Tues", SimpleContent = "Tuesday"
            },
                new SimpleViewModel {
                Name = "Wed", SimpleContent = "Wednesday"
            },
                new SimpleViewModel {
                Name = "Thu", SimpleContent = "Thursday"
            },
                new SimpleViewModel {
                Name = "Fri", SimpleContent = "Friday"
            },
                new SimpleViewModel {
                Name = "Sat", SimpleContent = "Sunday"
            },
                new SimpleViewModel {
                Name = "Sun", SimpleContent = "Sunday"
            }
                );

            app.Resources.Add(SystemParameters.ClientAreaAnimationKey, null);
            app.Resources.Add(SystemParameters.MinimizeAnimationKey, null);
            app.Resources.Add(SystemParameters.UIEffectsKey, null);

            new BoundExampleWindow()
            {
                DataContext = boundExampleModel
            }.Show();

            new QuickStartWindow().Show();

            app.Run();
        }
Exemplo n.º 6
0
 public static void Main(string[] args)
 {            
     var app = new App {ShutdownMode = ShutdownMode.OnLastWindowClose};
     app.InitializeComponent();
     
     new BasicExampleMainWindow
     {
         DataContext = new BasicExampleMainModel()
     }.Show();                                      
         
     var boundExampleModel = new BoundExampleModel(
         new HeaderedItemViewModel { Header = "Fixed", Content = "There is a dragablz:DragablzItemsControl.FixedItemCount of 1, so this header is fixed!" },
         new HeaderedItemViewModel { Header = "MDI Demo", Content = new MdiExample() },
         new HeaderedItemViewModel { Header = "Layout Info", Content = new LayoutManagementExample { DataContext = new LayoutManagementExampleViewModel()} },
         new HeaderedItemViewModel { Header = new CustomHeaderViewModel { Header = "Header"}, Content = "This tab illustrates how an individual header can be customised, without having to change the DragablzItem tab header template." },                
         new HeaderedItemViewModel { Header = "Tues", Content = "Tuesday's child is full of grace" }//,
         //new HeaderedItemViewModel { Header = "Wed", Content = "Wednesday's child is full of woe" }//,
         //new HeaderedItemViewModel { Header = "Thu", Content = "Thursday's child has far to go" },
         //new HeaderedItemViewModel { Header = "Fri", Content = "Friday's child loving and giving" }//,
         //new HeaderedItemViewModel { Header = "Sat", Content = "Saturday's child works hard for a living" },
         //new HeaderedItemViewModel { Header = "Sun", Content = "Sunday's child is awkwardly not fitting into this demo" }                 
         );            
     boundExampleModel.ToolItems.Add(
         new HeaderedItemViewModel { Header = "January", Content = "Welcome to the January tool/float item." });
     boundExampleModel.ToolItems.Add(
         new HeaderedItemViewModel { Header = "July", Content = "Welcome to the July tool/float item." });             
                
     new BoundExampleWindow()
     {
         DataContext = boundExampleModel
     }.Show();
     
     new QuickStartWindow().Show();
     
     app.Run();
 }