In This Article

ScreenTip Class

Represents a screen tip that is a drop-in replacement for ToolTip, but designed to show rich content with a specific appearance.

[TemplatePart(Name = "PART_Shadow", Type = typeof(ShadowChrome))]
public class ScreenTip : ToolTip
Inheritance:
object Visual UIElement FrameworkElement Control ContentControl ToolTip object

Constructors

ScreenTip()

Initializes a new instance of the ScreenTip class.

public ScreenTip()

Properties

ComplexContentWidth

Gets or sets the width the ScreenTip when it hosts complex content.

public double ComplexContentWidth { get; set; }

Property Value

double:

The width the ScreenTip when it hosts complex content.

Gets or sets the content to display in the footer.

public object Footer { get; set; }

Property Value

object:

The content to display in the footer.

FooterTemplate

Gets or sets the DataTemplate to use for displaying the footer.

public DataTemplate FooterTemplate { get; set; }

Property Value

DataTemplate:

The DataTemplate to use for displaying the footer.

FooterTemplateSelector

Gets or sets the DataTemplateSelector to use for displaying the footer.

public DataTemplateSelector FooterTemplateSelector { get; set; }

Property Value

DataTemplateSelector:

The DataTemplateSelector to use for displaying the footer.

HasFooter

Gets whether there is Footer content available.

public bool HasFooter { get; }

Property Value

bool:

true if there is Footer content available; otherwise, false.

HasHeader

Gets whether there is Header content available.

public bool HasHeader { get; }

Property Value

bool:

true if there is Header content available; otherwise, false.

Header

Gets or sets the content to display in the header.

public object Header { get; set; }

Property Value

object:

The content to display in the header.

HeaderTemplate

Gets or sets the DataTemplate to use for displaying the header.

public DataTemplate HeaderTemplate { get; set; }

Property Value

DataTemplate:

The DataTemplate to use for displaying the header.

HeaderTemplateSelector

Gets or sets the DataTemplateSelector to use for displaying the header.

public DataTemplateSelector HeaderTemplateSelector { get; set; }

Property Value

DataTemplateSelector:

The DataTemplateSelector to use for displaying the header.

RequiresCustomPlacement

Gets whether custom placement is required.

public bool RequiresCustomPlacement { get; }

Property Value

bool:

true if custom placement is required; otherwise, false.

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().

public override void OnApplyTemplate()

OnFooterChanged(object, object)

Occurs when the Footer property value is changed.

protected virtual void OnFooterChanged(object oldValue, object newValue)
Parameter Type Description
oldValue object

The old value.

newValue object

The new value.

OnFooterTemplateChanged(DataTemplate, DataTemplate)

Occurs when the FooterTemplate property value is changed.

protected virtual void OnFooterTemplateChanged(DataTemplate oldValue, DataTemplate newValue)
Parameter Type Description
oldValue DataTemplate

The old value.

newValue DataTemplate

The new value.

OnFooterTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector)

Occurs when the FooterTemplateSelector property value is changed.

protected virtual void OnFooterTemplateSelectorChanged(DataTemplateSelector oldValue, DataTemplateSelector newValue)
Parameter Type Description
oldValue DataTemplateSelector

The old value.

newValue DataTemplateSelector

The new value.

OnHeaderChanged(object, object)

Occurs when the Header property value is changed.

protected virtual void OnHeaderChanged(object oldValue, object newValue)
Parameter Type Description
oldValue object

The old value.

newValue object

The new value.

OnHeaderTemplateChanged(DataTemplate, DataTemplate)

Occurs when the HeaderTemplate property value is changed.

protected virtual void OnHeaderTemplateChanged(DataTemplate oldValue, DataTemplate newValue)
Parameter Type Description
oldValue DataTemplate

The old value.

newValue DataTemplate

The new value.

OnHeaderTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector)

Occurs when the HeaderTemplateSelector property value is changed.

protected virtual void OnHeaderTemplateSelectorChanged(DataTemplateSelector oldValue, DataTemplateSelector newValue)
Parameter Type Description
oldValue DataTemplateSelector

The old value.

newValue DataTemplateSelector

The new value.

OnPropertyChanged(DependencyPropertyChangedEventArgs)

Invoked whenever the effective value of any dependency property on this FrameworkElement has been updated. The specific dependency property that changed is reported in the arguments parameter. Overrides System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs).

protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
Parameter Type Description
e DependencyPropertyChangedEventArgs

The event data that describes the property that changed, as well as old and new values.

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Fields

ComplexContentWidthProperty

Identifies the ComplexContentWidth dependency property. This field is read-only.

public static readonly DependencyProperty ComplexContentWidthProperty

FooterProperty

Identifies the Footer dependency property. This field is read-only.

public static readonly DependencyProperty FooterProperty

FooterTemplateProperty

Identifies the FooterTemplate dependency property. This field is read-only.

public static readonly DependencyProperty FooterTemplateProperty

FooterTemplateSelectorProperty

Identifies the FooterTemplateSelector dependency property. This field is read-only.

public static readonly DependencyProperty FooterTemplateSelectorProperty

HasFooterProperty

Identifies the HasFooter dependency property. This field is read-only.

public static readonly DependencyProperty HasFooterProperty

HasHeaderProperty

Identifies the HasHeader dependency property. This field is read-only.

public static readonly DependencyProperty HasHeaderProperty

HeaderProperty

Identifies the Header dependency property. This field is read-only.

public static readonly DependencyProperty HeaderProperty

HeaderTemplateProperty

Identifies the HeaderTemplate dependency property. This field is read-only.

public static readonly DependencyProperty HeaderTemplateProperty

HeaderTemplateSelectorProperty

Identifies the HeaderTemplateSelector dependency property. This field is read-only.

public static readonly DependencyProperty HeaderTemplateSelectorProperty

RequiresCustomPlacementProperty

Identifies the RequiresCustomPlacement dependency property. This field is read-only.

public static readonly DependencyProperty RequiresCustomPlacementProperty