Intersoft ClientUI Documentation
ISContentControl Class
Members  See Also  Send Feedback
Intersoft.Client.Framework Namespace : ISContentControl Class






Serves as the base class for all Intersoft Content controls.

Object Model

ISContentControl Class

Syntax

Visual Basic (Declaration) 
Public MustInherit Class ISContentControl 
   Inherits System.Windows.Controls.ContentControl
   Implements IControlIFramework 
Visual Basic (Usage)Copy Code
Dim instance As ISContentControl
C# 
public abstract class ISContentControl : System.Windows.Controls.ContentControl, IControlIFramework  
Delphi 
public class ISContentControl = class(System.Windows.Controls.ContentControl, IControl, IFramework)abstract; 
JScript 
public abstract class ISContentControl extends System.Windows.Controls.ContentControl implements IControlIFramework 
Managed Extensions for C++ 
public __gc abstract class ISContentControl : public System.Windows.Controls.ContentControl, IControlIFramework  
C++/CLI 
public ref class ISContentControl abstract : public System.Windows.Controls.ContentControl, IControlIFramework  

Example

The following example demonstrates how to create three GlassLabel controls with Content set to one of the following:

  • A string
  • A UIElement
  • A Panel that contains other UIElement objects.
XAML Copy Code
<Intersoft:GlassLabel Content="String Value" Margin="4"/>             
<Intersoft:GlassLabel Margin="4">
    <TextBox TextWrapping="Wrap" Text="TextBox"/>
</Intersoft:GlassLabel>
<Intersoft:GlassLabel Margin="4">
    <StackPanel>
        <Ellipse Fill="WHITE" Height="48" Stroke="Black" Width="48" HorizontalAlignment="Center" VerticalAlignment="Center"/>
        <TextBlock TextWrapping="Wrap" Text="TextBlock" HorizontalAlignment="Center" VerticalAlignment="Center"/>
    </StackPanel>
</Intersoft:GlassLabel>

The following figure shows three GlassLabel controls created in the previous example.

Remarks

ISContentControl is one of many available content model that Intersoft ClientUI provides. To learn more about other content model see Content Model Overview.

ISContentControl is a base class for all ClientUI content controls. It is used to host and display common language runtime object (such as a string or a DateTime object) or a UIElement object (such as a Rectangle or a Panel). This enables you to add rich content to controls such as Button and CheckBox.

By default it already has predefined template which able to display common language runtime object in its string representation. If you want to enhance the appearance of the control, you can create a new ContentTemplate. This is commonly used in MVVM or data binding approach where you want to represent the data in more fashionable ways.

Some of the common members implemented in ISContentControl are:

  • CornerRadius to customize the round corner shape in most Intersoft Content Control when applicable
  • Routed event for ContentChanged which will be raised when content of ISContentControl is changed.

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.Documents.FlowPageContent
                     Intersoft.Client.Documents.PageContent
                     Intersoft.Client.Framework.ISHeaderedContentControl
                     Intersoft.Client.Framework.ISPopup
                     Intersoft.Client.Framework.ISSelectionItemControl
                     Intersoft.Client.UI.Aqua.UXDesktop.UXWindowChrome
                     Intersoft.Client.UI.Aqua.UXFluidContainer
                     Intersoft.Client.UI.Aqua.UXInput.UXClipper
                     Intersoft.Client.UI.Aqua.UXInput.UXSpinner
                     Intersoft.Client.UI.Aqua.UXInput.UXTickBarItem
                     Intersoft.Client.UI.Aqua.UXMenu
                     Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonContextualTabGroup
                     Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonKeyTipControl
                     Intersoft.Client.UI.Aqua.UXScroller
                     Intersoft.Client.UI.Aqua.UXStatusBarItem
                     Intersoft.Client.UI.Controls.CallOut
                     Intersoft.Client.UI.Controls.ContentPerspective
                     Intersoft.Client.UI.Controls.ContentProjector
                     Intersoft.Client.UI.Controls.ContentReflector
                     Intersoft.Client.UI.Controls.ContentTransformer
                     Intersoft.Client.UI.Controls.ContentTransition
                     Intersoft.Client.UI.Controls.ExpandableContentPresenter
                     Intersoft.Client.UI.Controls.StylishLabel
                     Intersoft.Client.UI.Controls.UXBusyIndicator
                     Intersoft.Client.UI.Controls.UXScrollViewer
                     Intersoft.Client.UI.Controls.ViewboxInternal
                     Intersoft.Client.UI.Data.UXDataComboBoxCellBase
                     Intersoft.Client.UI.Data.UXDataFilterItem
                     Intersoft.Client.UI.Data.UXGridViewCell
                     Intersoft.Client.UI.Data.UXGridViewColumnHeader
                     Intersoft.Client.UI.Data.UXGridViewDropDownButton
                     Intersoft.Client.UI.Data.UXGridViewGroupBoxItem
                     Intersoft.Client.UI.Data.UXGridViewRowHeader
                     Intersoft.Client.UI.Data.UXTreeListTreeLabel
                     Intersoft.Client.UI.ScheduleView.UXScheduleView
                     Intersoft.Client.UI.ScheduleView.UXScheduleViewEvent
                     Intersoft.Client.UI.ScheduleView.UXScheduleViewResourcesListItem

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.