Version

Position Minimized Dialog Window

By default, the dialog window does not change position when it is minimized. The width and the height of the dialog window changes, but the position does not change. However, you can override this default setting and change the position of the minimized dialog window.

For example, if you have many dialog windows on your application, it could be easier for your end user to see them all minimized in a uniformed manner in a certain location of the application.

To achieve this, you set the xamDialogWindow™ control’s MinimizedPanel property. This specifies a panel that the dialog window should be minimized to.

In XAML:

<StackPanel
    Grid.Column="0" Grid.Row="0" Background="Black"
    Orientation="Horizontal" x:Name="MinPanel">
</StackPanel>

<ig:XamDialogWindow
    Content="Dialog Window"
    x:Name="DialogWindow" Width="200" Height="200"
    MinimizedPanel="{Binding ElementName=MinPanel}" />

In Visual Basic:

DialogWindow.MinimizedPanel = Me.MinPanel

In C#:

DialogWindow.MinimizedPanel = this.MinPanel;