Intersoft ClientUI Documentation
UXWindowChrome Class
Members  Example 



Provides a simple window with styled chrome that serves as a logical container for user interface elements.
Object Model
UXWindowChrome ClassISFramework Class
Syntax
<TemplatePartAttribute(Name="ScaleTrans", Type=System.Windows.Media.ScaleTransform)>
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
<TemplateVisualStateAttribute(Name="Close", GroupName="WindowStates")>
<DescriptionAttribute("Provides a simple window with styled chrome that serves as a logical container for user interface elements.")>
<TemplatePartAttribute(Name="WindowElement", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)>
<TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="InactiveBorder", Type=System.Windows.Controls.Border)>
<TemplateVisualStateAttribute(GroupName="ActiveStates", Name="Active")>
<TemplatePartAttribute(Name="ActiveBorder", Type=System.Windows.Controls.Border)>
<TemplateVisualStateAttribute(GroupName="WindowStates", Name="Open")>
<TemplateVisualStateAttribute(GroupName="ActiveStates", Name="Inactive")>
Public Class UXWindowChrome 
   Inherits Intersoft.Client.Framework.ISContentControl
   Implements Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.IWindow 
Dim instance As UXWindowChrome
[TemplatePartAttribute(Name="ScaleTrans", Type=System.Windows.Media.ScaleTransform)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(Name="Close", GroupName="WindowStates")]
[DescriptionAttribute("Provides a simple window with styled chrome that serves as a logical container for user interface elements.")]
[TemplatePartAttribute(Name="WindowElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="InactiveBorder", Type=System.Windows.Controls.Border)]
[TemplateVisualStateAttribute(GroupName="ActiveStates", Name="Active")]
[TemplatePartAttribute(Name="ActiveBorder", Type=System.Windows.Controls.Border)]
[TemplateVisualStateAttribute(GroupName="WindowStates", Name="Open")]
[TemplateVisualStateAttribute(GroupName="ActiveStates", Name="Inactive")]
public class UXWindowChrome : Intersoft.Client.Framework.ISContentControl, Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.IWindow  
[TemplatePartAttribute(Name="ScaleTrans", Type=System.Windows.Media.ScaleTransform)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(Name="Close", GroupName="WindowStates")]
[DescriptionAttribute("Provides a simple window with styled chrome that serves as a logical container for user interface elements.")]
[TemplatePartAttribute(Name="WindowElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="InactiveBorder", Type=System.Windows.Controls.Border)]
[TemplateVisualStateAttribute(GroupName="ActiveStates", Name="Active")]
[TemplatePartAttribute(Name="ActiveBorder", Type=System.Windows.Controls.Border)]
[TemplateVisualStateAttribute(GroupName="WindowStates", Name="Open")]
[TemplateVisualStateAttribute(GroupName="ActiveStates", Name="Inactive")]
public ref class UXWindowChrome : public Intersoft.Client.Framework.ISContentControl, Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.IWindow  
Remarks

UXWindowChrome is a lightweight version of UXWindow which includes fundamental windowing features and integration to UXDesktop, but without the caption bar, context menu or other window management features. This makes UXWindowChrome suitable in certain user interface requirements such as floating toolbox, splash screen, window popups and much more.

Example
The following example shows how to create a stylish status window using UXWindowChrome.
<Intersoft:UXWindowChrome Name="StatusWindow" HorizontalAlignment="Center" 
		VerticalAlignment="Center" ContentBackground="{x:Null}" ContentBorderBrush="{x:Null}" 
		InnerBorderBrush="Black" InnerBackground="{x:Null}" IsClientVisible="true">
	<Intersoft:UXWindowChrome.Background>
		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FF414141" Offset="0"/>
			<GradientStop Color="Black" Offset="1"/>
		</LinearGradientBrush>
	</Intersoft:UXWindowChrome.Background>
	<StackPanel Orientation="Horizontal" Margin="24,12">
		<TextBlock TextWrapping="Wrap" Text="The dialog result is " Foreground="White" FontSize="14.667"/>
		<TextBlock Name="DialogResultLabel" TextWrapping="Wrap" Text="OK" Foreground="White" FontSize="14.667"/>
	</StackPanel>
</Intersoft:UXWindowChrome>
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.UI.Aqua.UXDesktop.UXWindowChrome

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

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

Send Feedback