4 people following this project (follow)

Project Description
Multi-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:

You need to install Microsoft Silverlight to view this content. Get Silverlight!
Get Microsoft Silverlight



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.

Last edited Mar 13 at 10:05 PM by ptrelford, version 13