How to pop up a floating form?

Sep 16, 2009 at 11:31 AM

I'm working on a project to rewrite a WinForm program by WPF+AvalonDock.

I want the program to pop up a dockable and floating window when I click a menu item like implemented in Winform:

Form form = new Form();

form.Show();

The base WPF is below:

<DockPanel>
        <Menu Name="mainMenu" DockPanel.Dock="Top">
            <MenuItem Name="menuItemShow" Header="Show" Click="menuItemShow_Click"/>
        </Menu>
        <ad:DockingManager Name="dockingManager">
        </ad:DockingManager>
</DockPanel>

How to impelment menuItemShow_Click to pop up the window?

Thanks.