CutTooltipBehavior ClassDW.WPFToolkit Documentation
Brings the functionality to the TextBlock and Label to show the text in the tooltip automatically when its cut.
Inheritance Hierarchy

SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      DW.WPFToolkit.InteractivityCutTooltipBehavior

Namespace: DW.WPFToolkit.Interactivity
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public class CutTooltipBehavior : DependencyObject

The CutTooltipBehavior type exposes the following members.

Methods

  NameDescription
Public methodStatic memberGetShowTooltip
Gets the value that defines when the tooltip should be shown.
Public methodStatic memberSetShowTooltip
Sets the value that defines when the tooltip should be shown.
Top
Fields

  NameDescription
Public fieldStatic memberShowTooltipProperty
Top
Attached Properties

  NameDescription
Public attached propertyShowTooltip
Top
Remarks

In the case of the Label the Content.ToString() will be used to get the text. If a tooltip is set already it will be overwritten.
Examples

XAML
<TextBlock Text="{Binding AnyLongtext}" Interactivity:CutTooltipBehavior.ShowTooltip="Width" />
See Also

Reference