Intersoft ClientUI Documentation
GlassLabel Class
Members  See Also  Send Feedback
Intersoft.Client.UI.Controls Namespace : GlassLabel Class






Provides a lightweight glass-themed content control.

Object Model

GlassLabel Class

Syntax

Visual Basic (Declaration) 
<TemplatePartAttribute(Name="SpreadColor", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="GlowEffect", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)>
<TemplatePartAttribute(Name="BaseColor", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="GlassColor", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="GlowColor", Type=System.Windows.Controls.Border)>
<DescriptionAttribute("Provides a lightweight glass-themed content control.")>
<TemplatePartAttribute(Name="ShineGlow", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
Public Class GlassLabel 
   Inherits StylishLabel
   Implements IControlIFramework, ILicensing 
Visual Basic (Usage)Copy Code
Dim instance As GlassLabel
C# 
[TemplatePartAttribute(Name="SpreadColor", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="GlowEffect", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="BaseColor", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="GlassColor", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="GlowColor", Type=System.Windows.Controls.Border)]
[DescriptionAttribute("Provides a lightweight glass-themed content control.")]
[TemplatePartAttribute(Name="ShineGlow", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
public class GlassLabel : StylishLabel, IControlIFramework, ILicensing  
Delphi 
public class GlassLabel = class(StylishLabel, IControl, IFramework, ILicensing)
JScript 
TemplatePartAttribute(Name="SpreadColor", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="GlowEffect", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)
TemplatePartAttribute(Name="BaseColor", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="GlassColor", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="GlowColor", Type=System.Windows.Controls.Border)
DescriptionAttribute("Provides a lightweight glass-themed content control.")
TemplatePartAttribute(Name="ShineGlow", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)
public class GlassLabel extends StylishLabel implements IControlIFramework, ILicensing 
Managed Extensions for C++ 
[TemplatePartAttribute(Name="SpreadColor", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="GlowEffect", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="BaseColor", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="GlassColor", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="GlowColor", Type=System.Windows.Controls.Border)]
[DescriptionAttribute("Provides a lightweight glass-themed content control.")]
[TemplatePartAttribute(Name="ShineGlow", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
public __gc class GlassLabel : public StylishLabel, IControlIFramework, ILicensing  
C++/CLI 
[TemplatePartAttribute(Name="SpreadColor", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="GlowEffect", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="BaseColor", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="GlassColor", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="GlowColor", Type=System.Windows.Controls.Border)]
[DescriptionAttribute("Provides a lightweight glass-themed content control.")]
[TemplatePartAttribute(Name="ShineGlow", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
public ref class GlassLabel : public StylishLabel, IControlIFramework, ILicensing  

Example

The following example shows how to create a Header and a Footer using GlassLabel.

XAML Copy Code
<Intersoft:DockPanel HorizontalAlignment="Center" Height="240" VerticalAlignment="Center" Width="200" FillChildMode="Custom">
    <Intersoft:GlassLabel Content="Header" Intersoft:DockPanel.Dock="Top" VerticalAlignment="Top" CornerRadius="8,8,0,0"/>
    <Intersoft:GlassLabel Content="Footer" Intersoft:DockPanel.Dock="Bottom" VerticalAlignment="Bottom" CornerRadius="0,0,8,8"/>
    <Border BorderBrush="#FF7A7A7A" BorderThickness="1" Intersoft:DockPanel.IsFillElement="True" />            
</Intersoft:DockPanel>        

Remarks

GlassLabel is inherited from ISContentControl, which means that it can contain a single object of any types, such as a string, an image, or a panel. For more information about this content model, see Content Model Overview.

GlassLabel supports ImageContent model concept which provides capability to efficiently specify the Image and Content through the provided properties. To learn more about ImageContent model, see Content Model Overview.

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.Controls.StylishLabel
                        Intersoft.Client.UI.Controls.GlassLabel

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.