InAppNotification Class

Definition

In App Notification defines a control to show local notification in the app.

[Windows.UI.Xaml.TemplatePart(Name="PART_DismissButton", Type=typeof(Windows.UI.Xaml.Controls.Button))]
[Windows.UI.Xaml.TemplateVisualState(GroupName="State", Name="Visible")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="State", Name="Collapsed")]
public class InAppNotification : Windows.UI.Xaml.Controls.ContentControl
type InAppNotification = class
    inherit ContentControl
Public Class InAppNotification
Inherits ContentControl
Inheritance
InAppNotification
Attributes

Constructors

InAppNotification()

Initializes a new instance of the InAppNotification class.

Fields

AnimationDurationProperty

Identifies the AnimationDuration dependency property.

HorizontalOffsetProperty

Identifies the HorizontalOffset dependency property.

KeyFrameDurationProperty

Using a DependencyProperty as the backing store for KeyFrameDuration. This enables animation, styling, binding, etc

ShowDismissButtonProperty

Identifies the ShowDismissButton dependency property.

StackModeProperty

Identifies the StackMode dependency property.

VerticalOffsetProperty

Identifies the VerticalOffset dependency property.

Properties

AnimationDuration

Gets or sets a value indicating the duration of the popup animation (in milliseconds).

HorizontalOffset

Gets or sets a value indicating the horizontal offset of the popup animation.

ShowDismissButton

Gets or sets a value indicating whether to show the Dismiss button of the control.

StackMode

Gets or sets a value indicating the stack mode of the notifications.

VerticalOffset

Gets or sets a value indicating the vertical offset of the popup animation.

Attached Properties

KeyFrameDuration

Methods

Dismiss()

Dismiss the notification

GetKeyFrameDuration(DependencyObject)

Gets the value of the KeyFrameDuration attached Property

OnApplyTemplate()
SetKeyFrameDuration(DependencyObject, TimeSpan)

Sets the value of the KeyFrameDuration attached property

Show(DataTemplate, Int32)

Show notification using DataTemplate as the content of the notification

Show(Int32)

Show notification using the current template

Show(String, Int32)

Show notification using text as the content of the notification

Show(UIElement, Int32)

Show notification using UIElement as the content of the notification

Events

Closed

Event raised when the notification is closed

Closing

Event raised when the notification is closing

Opened

Event raised when the notification is opened

Opening

Event raised when the notification is opening

Applies to