Intersoft ClientUI Documentation
How-to: Open a UXWindow using Command

This example shows how to open a UXWindow using command.

Example

Description

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.

Code

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>
See Also

Concepts

Other Resources