Class InformationToolTip
Inheritance
Implements
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class InformationToolTip : ToolTip, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild
Constructors
View SourceInformationToolTip()
Default constructor
Declaration
public InformationToolTip()
Fields
View SourceCustomPlacementFuncProperty
The DependencyProperty for CustomPlacementFunc
Declaration
public static readonly DependencyProperty CustomPlacementFuncProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
ExtendPinProperty
The DependencyProperty for ExtendPin
Declaration
public static readonly DependencyProperty ExtendPinProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
PinLocationProperty
The DependencyProperty for PinLocation
Declaration
public static readonly DependencyProperty PinLocationProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
PopupLocationProperty
The DependencyProperty for PopupLocation
Declaration
public static readonly DependencyProperty PopupLocationProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceCustomPlacementFunc
Function delegate to Calculate CustomPopupPlacement
Declaration
public Func<Size, Size, Point, CustomPopupPosition[]> CustomPlacementFunc { get; set; }
Property Value
| Type | Description |
|---|---|
| Func<Size, Size, Point, CustomPopupPosition[]> |
ExtendHeight
The static ExtendPinHeight property for Storyboard animations
Declaration
public static double ExtendHeight { get; }
Property Value
| Type | Description |
|---|---|
| double |
ExtendPin
Indicates whether the Pin is extended
Declaration
public bool ExtendPin { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ExtendPinHeight
Gets or sets the Height of the pin extension
Declaration
public double ExtendPinHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
PinLocation
gets or sets the location of the pin
Declaration
public PinLocation PinLocation { get; set; }
Property Value
| Type | Description |
|---|---|
| PinLocation |
PopupLocation
Gets or sets the location of the Popup
Will be ignored if the CustomPlacementFunc is setted
Declaration
public PopupLocation? PopupLocation { get; set; }
Property Value
| Type | Description |
|---|---|
| PopupLocation? |
Methods
View SourceOnOpened(RoutedEventArgs)
Declaration
protected override void OnOpened(RoutedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutedEventArgs | e |
Overrides
View SourceOnToolTipPropertyChangedCoerceValueCallback(DependencyObject, object)
Called when the tooltip property itself changes.
Declaration
[SuppressMessage("Style", "CA1801:Remove unused parameter", Justification = "Used as callback definition.")]
[SuppressMessage("Style", "IDE0060:Remove unused parameter", Justification = "Used as callback definition.")]
public static object OnToolTipPropertyChangedCoerceValueCallback(DependencyObject dependencyObject, object baseValue)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | dependencyObject | The DependencyObject. |
| object | baseValue | The base value. |
Returns
| Type | Description |
|---|---|
| object | The coerced value. |
Remarks
Used to set the InformationToolTip as default tooltip for the entire application. This is done by setting. FrameworkElement.ToolTipProperty.OverrideMetadata(typeof(FrameworkElement), new FrameworkPropertyMetadata(default(ToolTip), FrameworkPropertyMetadataOptions.Inherits, null, InformationToolTip.OnToolTipPropertyChangedCoerceValueCallback));