Class NotificationPopup
Implements a popup that displays a notification.
Inheritance
Implements
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
[TemplatePart(Name = "PART_ContentHost", Type = typeof(Grid))]
[TemplatePart(Name = "PART_DragMoveCanvas", Type = typeof(Canvas))]
[TemplatePart(Name = "PART_ScrollViewer", Type = typeof(ScrollViewer))]
[TemplatePart(Name = "PART_Icon", Type = typeof(ContentControl))]
public class NotificationPopup : ContentControl, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild
Fields
View SourceIconBackgroundProperty
Defines the DependencyProperty for IconBackground.
Declaration
public static readonly DependencyProperty IconBackgroundProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IconForegroundProperty
The DependencyProperty of the IconForeground property.
Declaration
public static readonly DependencyProperty IconForegroundProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IconStyleProperty
The DependencyProperty of the IconStyle property.
Declaration
public static readonly DependencyProperty IconStyleProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
IsOpenProperty
The DependencyProperty of the IsOpen property.
Declaration
public static readonly DependencyProperty IsOpenProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
NotificationTypeProperty
The DependencyProperty of the NotificationType.
Declaration
public static readonly DependencyProperty NotificationTypeProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
PopupMaxHeightProperty
The DependencyProperty of the PopupMaxHeight property.
Declaration
public static readonly DependencyProperty PopupMaxHeightProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
PopupMinMarginProperty
The DependencyProperty of the PopupMinMargin property.
Declaration
public static readonly DependencyProperty PopupMinMarginProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceIconBackground
Gets or sets the icon background.
Declaration
public SolidColorBrush IconBackground { get; set; }
Property Value
| Type | Description |
|---|---|
| SolidColorBrush | The icon background. |
IconForeground
Gets the foreground color of the icon.
Declaration
public SolidColorBrush IconForeground { get; }
Property Value
| Type | Description |
|---|---|
| SolidColorBrush |
IconStyle
Gets the icon style.
Declaration
public Style IconStyle { get; }
Property Value
| Type | Description |
|---|---|
| Style |
IsOpen
Indicates whether the popup is open.
Declaration
public bool IsOpen { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
NotificationType
Gets the notification type.
Declaration
public NotificationType NotificationType { get; set; }
Property Value
| Type | Description |
|---|---|
| NotificationType |
PopupMaxHeight
Gets the maximum height of the popup.
Declaration
public double PopupMaxHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Remarks
This value is calculated based on the value of the control.
PopupMinMargin
Defines the minimum margin of the popup.
Declaration
public Thickness PopupMinMargin { get; set; }
Property Value
| Type | Description |
|---|---|
| Thickness |
Methods
View SourceOnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().
Declaration
public override void OnApplyTemplate()