Saturday, February 14, 2015

How to switch between MDI and TDI


The LinsUIWPF Suite supports both multiple document interface (MDI) and tabbed document interface (TDI). It even allows user to mix them together. 

Step 1: Download the libraries.
Step 2: Follow the link How to create a new project with LinsUIWPF Suite to create a WPF project.
Step 3: Open Window1.xaml.cs.

Add the following code,
public partial class Window1 : LinsMDIWindow
{
public Window1()
{
InitializeComponent();

SetMetroStyle(false);
MyDocument doc1 = new MyDocument();
doc1.ShowDocument();

MyDocument doc2 = new MyDocument();
doc2.ShowDocument();
}
}


Step 4: Follow the following demo video to switch from MDI to TDI and reverse. Switch between MDI and TDI.





No comments:

Post a Comment