Edit

Share via


InAppNotification.Show Method

Definition

Overloads

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(DataTemplate, Int32)

Show notification using dataTemplate as the content of the notification

Show(UIElement, Int32)

Show notification using UIElement as the content of the notification

Show(Int32)

Show notification using the current content.

public void Show (int duration = 0);
member this.Show : int -> unit
Public Sub Show (Optional duration As Integer = 0)

Parameters

duration
Int32

Displayed duration of the notification in ms (less or equal 0 means infinite duration)

Applies to

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.

public void Show (object content, int duration = 0);
member this.Show : obj * int -> unit
Public Sub Show (content As Object, Optional duration As Integer = 0)

Parameters

content
Object

The content of the notification

duration
Int32

Displayed duration of the notification in ms (less or equal 0 means infinite duration)

Applies to

Show(String, Int32)

Show notification using text as the content of the notification

public void Show (string text, int duration = 0);
member this.Show : string * int -> unit
Public Sub Show (text As String, Optional duration As Integer = 0)

Parameters

text
String

Text used as the content of the notification

duration
Int32

Displayed duration of the notification in ms (less or equal 0 means infinite duration)

Applies to

Show(DataTemplate, Int32)

Show notification using dataTemplate as the content of the notification

public void Show (Windows.UI.Xaml.DataTemplate dataTemplate, int duration = 0);
member this.Show : Windows.UI.Xaml.DataTemplate * int -> unit
Public Sub Show (dataTemplate As DataTemplate, Optional duration As Integer = 0)

Parameters

dataTemplate
Windows.UI.Xaml.DataTemplate

DataTemplate used as the content of the notification

duration
Int32

Displayed duration of the notification in ms (less or equal 0 means infinite duration)

Applies to

Show(UIElement, Int32)

Show notification using UIElement as the content of the notification

public void Show (Windows.UI.Xaml.UIElement element, int duration = 0);
member this.Show : Windows.UI.Xaml.UIElement * int -> unit
Public Sub Show (element As UIElement, Optional duration As Integer = 0)

Parameters

element
Windows.UI.Xaml.UIElement

UIElement used as the content of the notification

duration
Int32

Displayed duration of the notification in ms (less or equal 0 means infinite duration)

Applies to