Intersoft ClientUI Documentation
How-to: Open a UXWindow using Command
See Also Send Feedback
Intersoft ClientUI 7 > ClientUI Fundamentals > Window and Dialog Boxes Overview > Window and Dialog Boxes How-to Topics > How-to: Open a UXWindow using Command

Glossary Item Box

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

©2012. All Rights Reserved.