Project DescriptionMulti-window aware versions of key Silverlight toolkit controls including ChildWindow and ContextMenu. Also available via Nuget.
Right click the sample application below to install it on your desktop and try the multi-window controls:
Showing a ChildWindow in a non-main/secondary window:
var child = new ChildWindow { Title = "Child Window" };
child.SetWindow(Window.GetWindow(this));
child.Show();
Adding a web style (constrained to parent window) ContextMenu:
<TextBlock Text="Right click on me to show the context menu">
<multiwindow:ContextMenuService.ContextMenu>
<multiwindow:ContextMenu>
<multiwindow:MenuItem Header="Menu Item"/>
</multiwindow:ContextMenu>
</multiwindow:ContextMenuService.ContextMenu>
</TextBlock>
Adding a desktop style (can show outsside of parent window) ContextMenuWindow:
<TextBlock Text="Right click on me to show the context menu">
<multiwindow:ContextMenuService.ContextMenu>
<multiwindow:ContextMenuWindow>
<multiwindow:MenuItem Header="Menu Item"/>
</multiwindow:ContextMenuWindow>
</multiwindow:ContextMenuService.ContextMenu>
</TextBlock>
In desktop mode the window can pop outside of the parent window.
