WPF: Showing Localized WPF Windows

Although you can usually call a Window Forms Show or ShowDialog method directly to show a non-modal or modal form, you should use the MM .NET Window Manager's Show and ShowDialog methods instead within a localized WPF application.

The reason for calling these alternate methods on the Window Manager is it allows modal dialogs to be displayed non-modally when the application is in Localization Setup mode. This is critical for allowing users to launch all application windows and localize them.

Calling the Window Manager's Show Method

Here's an example using the Form Manager's Show method:

In C#:

private void ListsRolesBar_Click(object sender, System.EventArgs e)
{
	mmAppWPF.WindowManager.Show(new mmRolesForm());
}

And in VB .NET:

Private Sub ListsRolesBar_Click(sender As Object, e As System.EventArgs)
   mmAppWPF.WindowMgr.Show(New mmRolesForm())
End Sub

Calling the Window Manager's ShowDialog Method

Here's an example using the Form Manager's ShowDialog method:

In C#:

private void ListsRolesBar_Click(object sender, System.EventArgs e)
{
	bool? Result = mmAppDesktop.FormMgr.ShowDialog(new mmRolesForm());
	// Check the Result and process accordingly
}

And in VB .NET:

Private Sub ListsRolesBar_Click(sender As Object, e As System.EventArgs)
   Dim Result As Boolean? = mmAppDesktop.FormMgr.ShowDialog(New mmRolesForm())
   ' Check the Result and process accordingly
End Sub

If the application is running in Localize Setup mode, this method calls the specified Window's Show() method rather than ShowDialog(). This makes sure the Window is not modal and can be localized.


© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 04/26/18
Comment or report problem with topic