ContactPanel ContactPanel ContactPanel Class

Definition

Represents a Contact Panel that appears when users click a contact that is pinned to the taskbar.

public sealed class ContactPanel : IContactPanelpublic sealed class ContactPanel : IContactPanelPublic NotInheritable Class ContactPanel Implements IContactPanel
Attributes
Windows 10 requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

The Contact Panel appears when users click a contact that is pinned to the taskbar.

Properties

HeaderColor HeaderColor HeaderColor

Specifies the color of the Contact Panel header.

public IReference<Color> HeaderColor { get; set; }public IReference<Color> HeaderColor { get; set; }Public ReadWrite Property HeaderColor As IReference<Color>
Value

A Color that represents the desired color.

Attributes

Remarks

Color takes effect only when the app is the active tab. If you don’t set this property, the system chooses the color.

Methods

ClosePanel() ClosePanel() ClosePanel()

Closes the Contact Panel.

public void ClosePanel()public void ClosePanel()Public Function ClosePanel() As void
Attributes

Remarks

This method must be called from the main UI thread.

Events

Closing Closing Closing

Occurs when the Contact Panel is closing.

public event TypedEventHandler Closingpublic event TypedEventHandler ClosingPublic Event Closing
Attributes

LaunchFullAppRequested LaunchFullAppRequested LaunchFullAppRequested

Occurs when the user clicks the Launch Full App button in the Contact Panel.

public event TypedEventHandler LaunchFullAppRequestedpublic event TypedEventHandler LaunchFullAppRequestedPublic Event LaunchFullAppRequested
Attributes

Remarks

Handle this event to provide your users with a smoother experience. For example, your app could handle this event to ensure that the full app continues playing a video that users start in the Contact Panel, or open a message that users started reading in the Contact Panel. If you don’t handle this event, or if you handle this event, but you don’t set the Handled property of the ContactPanelLaunchFullAppRequestedEventArgs property to true, your app starts in it’s default state.