Intersoft ClientUI Documentation
EllipsisText Class
Members 



Provides a lightweight control to automatically make ellipsis text when the text size is larger then its container. Furthermore you can enable / disable the custom tooltip that will appear when you mouse over an ellipsis text.
Object Model
EllipsisText ClassISFramework ClassUXPopup ClassStylishLabel Class
Syntax
<TemplatePartAttribute(Name="TextElement", Type=System.Windows.Controls.TextBlock)>
<StyleTypedPropertyAttribute(Property="TooltipStyle", StyleTargetType=Intersoft.Client.UI.Controls.StylishLabel)>
<TemplatePartAttribute(Name="PopupElement", Type=Intersoft.Client.UI.Controls.UXPopup)>
<DescriptionAttribute("Provides a lightweight control to automatically make ellipsis text when the text size is larger then its container. Furthermore you can enable / disable the custom tooltip that will appear when you mouse over an ellipsis text.")>
<TemplateVisualStateAttribute(Name="FadeIn", GroupName="FadingStates")>
<TemplatePartAttribute(Name="TooltipElement", Type=Intersoft.Client.UI.Controls.StylishLabel)>
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
<TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeOut")>
Public Class EllipsisText 
   Inherits Intersoft.Client.Framework.ISControl
   Implements Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing 
Dim instance As EllipsisText
[TemplatePartAttribute(Name="TextElement", Type=System.Windows.Controls.TextBlock)]
[StyleTypedPropertyAttribute(Property="TooltipStyle", StyleTargetType=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="PopupElement", Type=Intersoft.Client.UI.Controls.UXPopup)]
[DescriptionAttribute("Provides a lightweight control to automatically make ellipsis text when the text size is larger then its container. Furthermore you can enable / disable the custom tooltip that will appear when you mouse over an ellipsis text.")]
[TemplateVisualStateAttribute(Name="FadeIn", GroupName="FadingStates")]
[TemplatePartAttribute(Name="TooltipElement", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeOut")]
public class EllipsisText : Intersoft.Client.Framework.ISControl, Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing  
[TemplatePartAttribute(Name="TextElement", Type=System.Windows.Controls.TextBlock)]
[StyleTypedPropertyAttribute(Property="TooltipStyle", StyleTargetType=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="PopupElement", Type=Intersoft.Client.UI.Controls.UXPopup)]
[DescriptionAttribute("Provides a lightweight control to automatically make ellipsis text when the text size is larger then its container. Furthermore you can enable / disable the custom tooltip that will appear when you mouse over an ellipsis text.")]
[TemplateVisualStateAttribute(Name="FadeIn", GroupName="FadingStates")]
[TemplatePartAttribute(Name="TooltipElement", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeOut")]
public ref class EllipsisText : public Intersoft.Client.Framework.ISControl, Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing  
Remarks

EllipsisText is a label control with automatic text trimming mechanism. When the text exceeds the control dimension, it will trim the text and automatically adds an ellipsis indicator to the text.

Example

You can customize the position of the trimmed text by setting EllipsisPosition property. The following example show how to customize the EllipsisPosition.

XAML
Copy Code
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
    <Intersoft:EllipsisText Text="Some quite long text" EllipsisPosition="Right" Width="80"/>
    <Intersoft:EllipsisText Text="Some quite long text" EllipsisPosition="Left" Width="80"/>
    <Intersoft:EllipsisText Text="Some quite long text" EllipsisPosition="Center" Width="80"/>
</StackPanel>

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               Intersoft.Client.Framework.ISControl
                  Intersoft.Client.UI.Controls.EllipsisText

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

EllipsisText Members
Intersoft.Client.UI.Controls Namespace

Concepts

EllipsisText

Send Feedback