forked from syncfusion/wpf-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockingManagerDemosViewModel.cs
54 lines (51 loc) · 5.99 KB
/
DockingManagerDemosViewModel.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#region Copyright Syncfusion Inc. 2001-2022.
// Copyright Syncfusion Inc. 2001-2022. All rights reserved.
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// [email protected]. Any infringement will be prosecuted under
// applicable laws.
#endregion
using syncfusion.demoscommon.wpf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace syncfusion.dockingmanagerdemos.wpf
{
public class DockingManagerDemosViewModel : DemoBrowserViewModel
{
public override List<ProductDemo> GetDemosDetails()
{
var productdemos = new List<ProductDemo>();
productdemos.Add(new DockingManagerProductDemos());
return productdemos;
}
}
public class DockingManagerProductDemos : ProductDemo
{
public DockingManagerProductDemos()
{
this.Product = "Docking Manager";
this.ProductCategory = "LAYOUT";
this.Demos = new List<DemoInfo>();
this.Demos.Add(new DemoInfo() { SampleName = "Getting Started", Description= "This sample showcases the DockingManager control with basic functionalities.",
GroupName = "Getting Started", DemoViewType = typeof(GettingStarted) });
this.Demos.Add(new DemoInfo() { SampleName = "Caption Restriction", Description= "This sample showcases how to customize the dock child's header caption such as Context Menu button, Hide button, Close button, and custom header image.", GroupName = "Getting Started", DemoViewType = typeof(CaptionRestriction) });
this.Demos.Add(new DemoInfo() { SampleName = "DockHints Restriction", Description = "This sample showcases how to restrict the specific DockAbility of child window when it is moved to the client area in the DockingManager", GroupName = "Getting Started", DemoViewType = typeof(DockHintsRestrictionDemo) });
this.Demos.Add(new DemoInfo() { SampleName = "Maximization", Description = "This sample exhibits support for minimize and maximize the dock windows as well as maximize mode.", GroupName = "Getting Started", DemoViewType = typeof(DockChildMaximization) });
this.Demos.Add(new DemoInfo() { SampleName = "Scrollable Auto Hidden Windows", Description = "This sample showcases the docking manager layout with buttons in auto hide panel to scroll and view the items when the auto hidden items are exceeded in the panel.", GroupName = "Window Types", DemoViewType = typeof(ScrollableAutoHiddenPanel) });
this.Demos.Add(new DemoInfo() { SampleName = "Floating Windows", Description = "This sample showcases the docking manager layout with the Floating windows and its alignment functionalities", GroupName = "Window Types", DemoViewType = typeof(FloatWindow) });
this.Demos.Add(new DemoInfo() { SampleName = "Tabbed Windows", Description = "This sample showcases the docking manager layout with the tabbed windows and its alignment functionalities", GroupName = "Window Types", DemoViewType = typeof(TabbedWindow) });
this.Demos.Add(new DemoInfo() { SampleName = "Multiple Document Interface", Description= "This sample showcases the MDI layout of the Document Window and different types of navigations when pressing Ctrl + Tab key.", GroupName = "MDI & TDI", DemoViewType = typeof(MDIDemo) });
this.Demos.Add(new DemoInfo() { SampleName = "Tabbed Document Interface", Description= "This sample showcases the TDI layout of the Document Window and different types of navigations when pressing Ctrl + Tab key.", GroupName = "MDI & TDI", DemoViewType = typeof(TDIDemo) });
//this.Demos.Add(new DemoInfo() { SampleName = "Auto Hide", Description= "This sample showcases how the child elements are arranged as Auto Hidden window, and how the dock windows can be moved to auto hidden window without the Autohidden pin.", GroupName = "Docking Manager", DemoViewType = typeof(AutoHide) });
this.Demos.Add(new DemoInfo() { SampleName = "State Persistence", Description= "This sample showcases the support for serialization and deserialization in DockingManager. DockingManager serializes the child element into various formats like IsolatedStorage, BinaryFormat, XML file, XmlWriter, and de-serializes from it.", GroupName = "Serialization", DemoViewType = typeof(StatePersistence), DemoLauchMode = DemoLauchMode.Window, ThemeMode = ThemeMode.Default });
this.Demos.Add(new DemoInfo() { SampleName = "Visual Studio like State Persistence", Description= "This sample showcases how the docking manager retains the different mode layouts when the application is closed and reopened like Visual Studio.", GroupName = "Serialization", DemoViewType = typeof(DockingManagerlikeVisualStudio) });
//this.Demos.Add(new DemoInfo() { SampleName = "Docking Touch", Description= "This sample showcases the Touch functionality of Docking Manager Control", GroupName = "DOCKING TOUCH", DemoViewType = typeof(DockingTouch), DemoLauchMode = DemoLauchMode.Window});
this.Demos.Add(new DemoInfo() { SampleName = "Linked Manager", Description= "This sample showcases how the drag and drop operations can be performed from one DockingManager to another DockingManager control", GroupName = "Advanced Use Cases", DemoViewType = typeof(LinkedManager), DemoLauchMode = DemoLauchMode.Window });
this.Demos.Add(new DemoInfo() { SampleName = "Nested Docking", Description = "This sample showcases the nested level functionality like having DockingManager control as child of another Docking Manager Control.", GroupName = "Advanced Use Cases", DemoViewType = typeof(NestedDockingManager) });
this.Demos.Add(new DemoInfo() { SampleName = "Localization", Description = "This sample illustrates how to localize the contextmenu items headers and tooltips depending on required culture.", GroupName = "Getting Started", DemoViewType = typeof(DockingManagerLocalizationDemo) });
}
}
}