public DockingAdapterViewModel()
        {
            DockingAdapter = new ObservableCollection <Workspace>();

            ToolboxViewModel toolbox = new ToolboxViewModel()
            {
                Name = "ToolboxWindow", Header = "Toolbox", State = DockState.Dock, SideInDockMode = DockSide.Left, DesiredWidthInDockedMode = 250
            };
            SolutionExplorerViewModel solutionexplorer = new SolutionExplorerViewModel()
            {
                Name = "SolutionExplorerWindow", Header = "Solution Explorer", State = DockState.Dock, SideInDockMode = DockSide.Right, DesiredWidthInDockedMode = 300
            };
            ClassViewModel classview = new ClassViewModel()
            {
                Name = "ClassViewWindow", Header = "Class View", State = DockState.Dock, TargetNameInDockedMode = "SolutionExplorerWindow", SideInDockMode = DockSide.Tabbed
            };
            PropertiesViewModel properties = new PropertiesViewModel()
            {
                Name = "PropertiesWindow", Header = "Properties", State = DockState.Dock, TargetNameInDockedMode = "SolutionExplorerWindow", SideInDockMode = DockSide.Bottom
            };
            ErrorListViewModel errorlist = new ErrorListViewModel()
            {
                Name = "ErrorListWindow", Header = "Error List", State = DockState.Dock, SideInDockMode = DockSide.Bottom, DesiredHeightInDockedMode = 200
            };
            FindSymbolResultsViewModel findsymbolresults = new FindSymbolResultsViewModel()
            {
                Name = "FindSymbolResultsWindow", Header = "Find Symbol Results", State = DockState.Dock, TargetNameInDockedMode = "ErrorListWindow", SideInDockMode = DockSide.Tabbed
            };
            OutputViewModel output = new OutputViewModel()
            {
                Name = "OutputWindow", Header = "Output", State = DockState.Dock, TargetNameInDockedMode = "ErrorListWindow", SideInDockMode = DockSide.Tabbed
            };
            FindResultsViewModel findresults = new FindResultsViewModel()
            {
                Name = "FindResults1Window", Header = "Find Results 1", State = DockState.Dock, TargetNameInDockedMode = "ErrorListWindow", SideInDockMode = DockSide.Tabbed
            };

            MainWindowXAMLViewModel mainwindowxaml = new MainWindowXAMLViewModel()
            {
                Header = "MainWindow.xaml", State = DockState.Document
            };
            MainWindowCSViewModel mainwindowcs = new MainWindowCSViewModel()
            {
                Header = "MainWindow.xaml.cs", State = DockState.Document
            };

            DockingAdapter.Add(toolbox);
            DockingAdapter.Add(solutionexplorer);
            DockingAdapter.Add(classview);
            DockingAdapter.Add(properties);
            DockingAdapter.Add(errorlist);
            DockingAdapter.Add(findsymbolresults);
            DockingAdapter.Add(output);
            DockingAdapter.Add(findresults);
            DockingAdapter.Add(mainwindowxaml);
            DockingAdapter.Add(mainwindowcs);
        }
Esempio n. 2
0
        public void GridLoaded(ErrorListViewModel model)
        {
            DockingManager dockingmanager = (((App.Current.MainWindow as ShellView).Docking.Content as DockingAdapterView).DockingAdapter.Content as Grid).Children[0] as Syncfusion.Windows.Tools.Controls.DockingManager;

            VisualStyle = (dockingmanager != null) ? SkinStorage.GetVisualStyle(dockingmanager) : "Default";
        }