Skip to main content

How to: Show Detail Views in Separate Windows

  • 2 minutes to read

This tutorial is based on the following sample project.


A complete sample project is available in the DevExpress Code Examples database at

You may want to show detail views in separate windows instead of tabs. To accomplish this, let’s review how tabs are created.

CollectionViewModelBase uses the IDocumentManagerService interface to create abstract documents that represent detail views at runtime. The implementation of IDocumentManagerService defines the way these views are represented in the UI. By default, the Tabbed MDI View Scaffolding Wizard generates the DepartmentContextView that uses the TabbedDocumentUIService to represent child Views in separate tabs within the DocumentGroup control.

<dxdo:DocumentGroup x:Name="documentGroup">
        <dxdo:TabbedDocumentUIService />

All generated collection views already contain the WindowedDocumentUIService that shows views in separate windows. The YieldToParent property is set to true, which means that the CollectionViewModel will search its parent view models for the instance of the IDocumentManagerService interface.

        <dx:WindowedDocumentUIService YieldToParent="True" />

So, all we need to do is to make the collection view model use this instance instead of the instance from the parent DepartmentContextViewModel is to set this property to false.

Let’s also tweak the WindowedDocumentUIService inside the CourseCollectionView to make its windows dialog-like and use the DXRibbonWindow as we have the ribbon in our detail views:

<dx:WindowedDocumentUIService WindowStartupLocation="CenterOwner" WindowType="dxr:DXRibbonWindow" YieldToParent="False">
                <Style TargetType="Window">
                    <Setter Property="Width" Value="600"/>
                    <Setter Property="Height" Value="400"/>
                    <Setter Property="ResizeMode" Value="NoResize"/>
                    <Setter Property="ShowInTaskbar" Value="False"/>
                    <Setter Property="WindowStyle" Value="ToolWindow"/>

The course detail editing forms are now shown in separate windows:


To change the windows model so that only one detail form is shown at a time, set the WindowedDocumentUIService.DocumentShowMode property to Dialog.