Intersoft ClientUI 8 > ClientUI Fundamentals > Window and Dialog Boxes Overview > Window and Dialog Boxes How-to Topics > How-to: Open a UXWindow using Command |
This example shows how to open a UXWindow using command.
To open a window based on the target URI using command, you use the LaunchApplication command and set the value of the CommandParameter property in the particular command source (such as UXButton) to the target URI the window to be opened.
The following example shows how to open a window based on a target URI using command.
C# |
Copy Code
|
---|---|
<Intersoft:UXWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Intersoft="http://intersoft.clientui.com/schemas"> <Grid x:Name="LayoutRoot"> <StackPanel> <Intersoft:UXButton Content="Button" HorizontalAlignment="Left" Command="Intersoft:WindowCommands.LaunchApplication" CommandParameter="/Desktop/HomeWindow.xaml"/> </StackPanel> </Grid> </Intersoft:UXWindow> |