# Setting Mode in WPF Tabbed MDI Form

The WPF Tabbed MDI Form supports the following two modes:

* **TDI** - Tabbed Document Interface (default)
* **MDI** - Multiple Document Interface

You can change the mode using the [Mode](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Tools.Controls.DocumentContainer.html#Syncfusion_Windows_Tools_Controls_DocumentContainer_Mode) property of the WPF Tabbed MDI Form, which uses the `Syncfusion.Windows.Tools.Controls.DocumentContainerMode` enum.

## Setting the Mode to TDI

{% tabs %}
{% highlight XAML %}
<syncfusion:DocumentContainer Name="DocContainer" Mode="TDI">
    <!-- child elements -->
</syncfusion:DocumentContainer>
{% endhighlight %}

{% highlight C# %}
// Creating an instance of DocumentContainer
DocumentContainer docContainer = new DocumentContainer();
// Set the mode to TDI
docContainer.Mode = DocumentContainerMode.TDI;
// Add the control to the window
this.Content = docContainer;
{% endhighlight %}
{% endtabs %}

![DocumentContainer in TDI mode](https://help.syncfusion.com/wpf/tabbed-mdi-form/setting-mode-for-document-container_images/setting-mode-for-document-container_img1.jpeg)

## Setting the Mode to MDI

{% tabs %}
{% highlight XAML %}
<syncfusion:DocumentContainer Name="DocContainer" Mode="MDI">
    <!-- child elements -->
</syncfusion:DocumentContainer>
{% endhighlight %}

{% highlight C# %}
// Creating an instance of DocumentContainer
DocumentContainer docContainer = new DocumentContainer();
// Set the mode to MDI
docContainer.Mode = DocumentContainerMode.MDI;
// Add the control to the window
this.Content = docContainer;
{% endhighlight %}
{% endtabs %}

![DocumentContainer in MDI mode](https://help.syncfusion.com/wpf/tabbed-mdi-form/setting-mode-for-document-container_images/setting-mode-for-document-container_img2.jpeg)
