Edit

Share via


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
[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")]
[Windows.UI.Xaml.TemplatePart(Name="PART_Presenter", Type=typeof(Windows.UI.Xaml.Controls.ContentPresenter))]
public class InAppNotification : Windows.UI.Xaml.Controls.ContentControl
[<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")>]
type InAppNotification = class
    inherit ContentControl
[<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")>]
[<Windows.UI.Xaml.TemplatePart(Name="PART_Presenter", Type=typeof(Windows.UI.Xaml.Controls.ContentPresenter))>]
type InAppNotification = class
    inherit ContentControl
Public Class InAppNotification
Inherits ContentControl
Inheritance
Windows.UI.Xaml.Controls.ContentControl
InAppNotification
Attributes
Windows.UI.Xaml.TemplatePartAttribute Windows.UI.Xaml.TemplateVisualStateAttribute

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

Dismiss(Boolean)

Dismiss the notification

GetKeyFrameDuration(DependencyObject)

Gets the value of the KeyFrameDuration attached Property

OnApplyTemplate() Windows.UI.Xaml.Controls.ContentControl.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 content.

Show(Object, Int32)

Show notification using content as the content of the notification. The content will be displayed with the current Windows.UI.Xaml.Controls.ContentControl.ContentTemplate.

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