Intersoft ClientUI Documentation
UXWindowChrome Class
Members  Example  See Also  Send Feedback
Intersoft.Client.UI.Aqua.UXDesktop Namespace : UXWindowChrome Class






Provides a simple window with styled chrome that serves as a logical container for user interface elements.

Object Model

UXWindowChrome Class

Syntax

Visual Basic (Declaration) 
<TemplateVisualStateAttribute(Name="Inactive", GroupName="ActiveStates")>
<TemplateVisualStateAttribute(GroupName="ActiveStates", Name="Active")>
<DescriptionAttribute("Provides a simple window with styled chrome that serves as a logical container for user interface elements.")>
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)>
<TemplatePartAttribute(Name="InactiveBorder", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="ActiveBorder", Type=System.Windows.Controls.Border)>
<TemplateVisualStateAttribute(GroupName="WindowStates", Name="Open")>
<TemplatePartAttribute(Name="ScaleTrans", Type=System.Windows.Media.ScaleTransform)>
<TemplateVisualStateAttribute(GroupName="WindowStates", Name="Close")>
<TemplatePartAttribute(Name="WindowElement", Type=System.Windows.Controls.Border)>
Public Class UXWindowChrome 
   Inherits Intersoft.Client.Framework.ISContentControl
   Implements IControlIFramework, ILicensing, IWindow 
Visual Basic (Usage)Copy Code
Dim instance As UXWindowChrome
C# 
[TemplateVisualStateAttribute(Name="Inactive", GroupName="ActiveStates")]
[TemplateVisualStateAttribute(GroupName="ActiveStates", Name="Active")]
[DescriptionAttribute("Provides a simple window with styled chrome that serves as a logical container for user interface elements.")]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="InactiveBorder", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ActiveBorder", Type=System.Windows.Controls.Border)]
[TemplateVisualStateAttribute(GroupName="WindowStates", Name="Open")]
[TemplatePartAttribute(Name="ScaleTrans", Type=System.Windows.Media.ScaleTransform)]
[TemplateVisualStateAttribute(GroupName="WindowStates", Name="Close")]
[TemplatePartAttribute(Name="WindowElement", Type=System.Windows.Controls.Border)]
public class UXWindowChrome : Intersoft.Client.Framework.ISContentControl, IControlIFramework, ILicensing, IWindow  
Delphi 
public class UXWindowChrome = class(Intersoft.Client.Framework.ISContentControl, IControl, IFramework, ILicensing, IWindow)
JScript 
TemplateVisualStateAttribute(Name="Inactive", GroupName="ActiveStates")
TemplateVisualStateAttribute(GroupName="ActiveStates", Name="Active")
DescriptionAttribute("Provides a simple window with styled chrome that serves as a logical container for user interface elements.")
TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)
TemplatePartAttribute(Name="InactiveBorder", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="ActiveBorder", Type=System.Windows.Controls.Border)
TemplateVisualStateAttribute(GroupName="WindowStates", Name="Open")
TemplatePartAttribute(Name="ScaleTrans", Type=System.Windows.Media.ScaleTransform)
TemplateVisualStateAttribute(GroupName="WindowStates", Name="Close")
TemplatePartAttribute(Name="WindowElement", Type=System.Windows.Controls.Border)
public class UXWindowChrome extends Intersoft.Client.Framework.ISContentControl implements IControlIFramework, ILicensing, IWindow 
Managed Extensions for C++ 
[TemplateVisualStateAttribute(Name="Inactive", GroupName="ActiveStates")]
[TemplateVisualStateAttribute(GroupName="ActiveStates", Name="Active")]
[DescriptionAttribute("Provides a simple window with styled chrome that serves as a logical container for user interface elements.")]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="InactiveBorder", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ActiveBorder", Type=System.Windows.Controls.Border)]
[TemplateVisualStateAttribute(GroupName="WindowStates", Name="Open")]
[TemplatePartAttribute(Name="ScaleTrans", Type=System.Windows.Media.ScaleTransform)]
[TemplateVisualStateAttribute(GroupName="WindowStates", Name="Close")]
[TemplatePartAttribute(Name="WindowElement", Type=System.Windows.Controls.Border)]
public __gc class UXWindowChrome : public Intersoft.Client.Framework.ISContentControl, IControlIFramework, ILicensing, IWindow  
C++/CLI 
[TemplateVisualStateAttribute(Name="Inactive", GroupName="ActiveStates")]
[TemplateVisualStateAttribute(GroupName="ActiveStates", Name="Active")]
[DescriptionAttribute("Provides a simple window with styled chrome that serves as a logical container for user interface elements.")]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="InactiveBorder", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ActiveBorder", Type=System.Windows.Controls.Border)]
[TemplateVisualStateAttribute(GroupName="WindowStates", Name="Open")]
[TemplatePartAttribute(Name="ScaleTrans", Type=System.Windows.Media.ScaleTransform)]
[TemplateVisualStateAttribute(GroupName="WindowStates", Name="Close")]
[TemplatePartAttribute(Name="WindowElement", Type=System.Windows.Controls.Border)]
public ref class UXWindowChrome : public Intersoft.Client.Framework.ISContentControl, IControlIFramework, ILicensing, IWindow  

Example

The following example shows how to create a stylish status window using UXWindowChrome.
XAMLCopy Code
<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>

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.

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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.