Intersoft ClientUI Documentation
UXWindow Class
Members  Example 



Represents window interface that serves as a logical container for hosting user interface elements.
Object Model
UXWindow ClassApplicationPackage ClassISFramework ClassUXContextMenu ClassUXContextMenu Class
Syntax
<TemplateVisualStateAttribute(Name="Active", GroupName="ActiveStates")>
<TemplateVisualStateAttribute(GroupName="ActiveStates", Name="Inactive")>
<TemplatePartAttribute(Name="TitleBar", Type=Intersoft.Client.UI.Controls.DockPanel)>
<TemplatePartAttribute(Name="HeaderElement", Type=Intersoft.Client.UI.Controls.StylishLabel)>
<TemplatePartAttribute(Name="PrimaryToolBar", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="BarContainers", Type=System.Windows.Controls.Grid)>
<TemplateVisualStateAttribute(GroupName="WindowStates", Name="Open")>
<TemplatePartAttribute(Name="Overlay", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="ResizeGrip", Type=System.Windows.Controls.Border)>
<StyleTypedPropertyAttribute(Property="WindowButtonStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXDesktop.WindowButtons)>
<TemplatePartAttribute(Name="WindowElement", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentControl)>
<TemplatePartAttribute(Name="HeaderBar", Type=System.Windows.Controls.Border)>
<TemplateVisualStateAttribute(GroupName="WindowStates", Name="Close")>
<DescriptionAttribute("Represents window interface that serves as a logical container for hosting user interface elements.")>
<TemplatePartAttribute(Name="WindowButtons", Type=Intersoft.Client.UI.Aqua.UXDesktop.WindowButtons)>
<TemplatePartAttribute(Name="ActiveBorder", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="ScaleTrans", Type=System.Windows.Media.ScaleTransform)>
<TemplatePartAttribute(Name="InactiveBorder", Type=System.Windows.Controls.Border)>
Public Class UXWindow 
   Inherits Intersoft.Client.Framework.ISHeaderedContentControl
   Implements Intersoft.Client.Framework.IApplicationHostIntersoft.Client.Framework.IControlIntersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.IWindow 
Dim instance As UXWindow
[TemplateVisualStateAttribute(Name="Active", GroupName="ActiveStates")]
[TemplateVisualStateAttribute(GroupName="ActiveStates", Name="Inactive")]
[TemplatePartAttribute(Name="TitleBar", Type=Intersoft.Client.UI.Controls.DockPanel)]
[TemplatePartAttribute(Name="HeaderElement", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="PrimaryToolBar", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="BarContainers", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="WindowStates", Name="Open")]
[TemplatePartAttribute(Name="Overlay", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ResizeGrip", Type=System.Windows.Controls.Border)]
[StyleTypedPropertyAttribute(Property="WindowButtonStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXDesktop.WindowButtons)]
[TemplatePartAttribute(Name="WindowElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentControl)]
[TemplatePartAttribute(Name="HeaderBar", Type=System.Windows.Controls.Border)]
[TemplateVisualStateAttribute(GroupName="WindowStates", Name="Close")]
[DescriptionAttribute("Represents window interface that serves as a logical container for hosting user interface elements.")]
[TemplatePartAttribute(Name="WindowButtons", Type=Intersoft.Client.UI.Aqua.UXDesktop.WindowButtons)]
[TemplatePartAttribute(Name="ActiveBorder", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ScaleTrans", Type=System.Windows.Media.ScaleTransform)]
[TemplatePartAttribute(Name="InactiveBorder", Type=System.Windows.Controls.Border)]
public class UXWindow : Intersoft.Client.Framework.ISHeaderedContentControl, Intersoft.Client.Framework.IApplicationHostIntersoft.Client.Framework.IControlIntersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.IWindow  
[TemplateVisualStateAttribute(Name="Active", GroupName="ActiveStates")]
[TemplateVisualStateAttribute(GroupName="ActiveStates", Name="Inactive")]
[TemplatePartAttribute(Name="TitleBar", Type=Intersoft.Client.UI.Controls.DockPanel)]
[TemplatePartAttribute(Name="HeaderElement", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="PrimaryToolBar", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="BarContainers", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="WindowStates", Name="Open")]
[TemplatePartAttribute(Name="Overlay", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ResizeGrip", Type=System.Windows.Controls.Border)]
[StyleTypedPropertyAttribute(Property="WindowButtonStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXDesktop.WindowButtons)]
[TemplatePartAttribute(Name="WindowElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentControl)]
[TemplatePartAttribute(Name="HeaderBar", Type=System.Windows.Controls.Border)]
[TemplateVisualStateAttribute(GroupName="WindowStates", Name="Close")]
[DescriptionAttribute("Represents window interface that serves as a logical container for hosting user interface elements.")]
[TemplatePartAttribute(Name="WindowButtons", Type=Intersoft.Client.UI.Aqua.UXDesktop.WindowButtons)]
[TemplatePartAttribute(Name="ActiveBorder", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ScaleTrans", Type=System.Windows.Media.ScaleTransform)]
[TemplatePartAttribute(Name="InactiveBorder", Type=System.Windows.Controls.Border)]
public ref class UXWindow : public Intersoft.Client.Framework.ISHeaderedContentControl, Intersoft.Client.Framework.IApplicationHostIntersoft.Client.Framework.IControlIntersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.IWindow  
Remarks

UXWindow is a full-featured windowing control that provides all the user interface elements required in a window such as title bar, control box, option buttons, chrome border, content area and more. It gives you complete customization over its look and feel, allowing you to create commercial-class user interface applications.  

The following illustration shows the user interface overview of a window control.

As seen in the above illustration, UXWindow does not only provide the user interface and styles, but also implement the behaviors and user experience aspects such as 8-edge resizing mode, active and inactive state, drag and drop, and context menu.

For more information about user experience implementation in windowing and other ClientUI controls, see User Experiences Overview.

To show a window, you set its IsClientVisible property to true. If you use MVVM pattern development, you can bind this property to control the window's visibility in your ViewModel. For more information about MVVM pattern, see MVVM Pattern Overview.

The following example shows how to show a window when the desktop control is loaded.

XAML
Copy Code
 <Intersoft:UXPage
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:Intersoft="http://intersoft.clientui.com/schemas"
        xmlns:local="ClientUIApplication_Docs.Desktop"
        mc:Ignorable="d"
        Title="UXDesktop1 Page"
        d:DesignWidth="640" d:DesignHeight="480">

        <Grid x:Name="LayoutRoot">
                <Intersoft:UXDesktop>
                        <local:HomeWindow WindowName="wndHome" />
                </Intersoft:UXDesktop>
        </Grid>
</Intersoft:UXPage>

To learn more about UXWindow and its features, see UXWindow Overview.

Example
The following example shows the XAML code to implement a simple desktop-style interface using UXDesktop and UXWindow control.
<Intersoft:UXPage
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:Intersoft="http://intersoft.clientui.com/schemas"
        mc:Ignorable="d"
        Title="UXDesktop1 Page"
        d:DesignWidth="640" d:DesignHeight="480">

        <Grid x:Name="LayoutRoot">
                <Intersoft:UXDesktop>
                        <Intersoft:UXWindow x:Name="wnd1" Header="UXWindow1 Title">
                            <Grid>
                                <TextBlock Text="Content for UXWindow1"/>
                            </Grid>
                        </Intersoft:UXWindow>
                        <Intersoft:UXWindow x:Name="wnd2" Header="UXWindow2 Title" IsActive="True">
                            <Grid>
                                <TextBlock Text="Content for UXWindow2"/>
                            </Grid>
                        </Intersoft:UXWindow>
                </Intersoft:UXDesktop>
        </Grid>
</Intersoft:UXPage>
Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.ContentControl
                  Intersoft.Client.Framework.ISContentControl
                     Intersoft.Client.Framework.ISHeaderedContentControl
                        Intersoft.Client.UI.Aqua.UXDesktop.UXWindow
                           Intersoft.Client.UI.Aqua.UXDesktop.UXDialogBox
                           Intersoft.Client.UI.Aqua.UXDesktop.UXNavigationWindow
                           Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonWindow

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

UXWindow Members
Intersoft.Client.UI.Aqua.UXDesktop Namespace
Window and Dialog Boxes Overview

Send Feedback