ContactPanel 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 : IContactPanel
public sealed class ContactPanel : IContactPanel
Public NotInheritable Class ContactPanel Implements IContactPanel
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
Capabilities
contactsSystem

Remarks

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

Properties

HeaderColor HeaderColor HeaderColor HeaderColor

Specifies the color of the Contact Panel header.

public : IReference<Color> HeaderColor { get; set; }
public Nullable<Color> HeaderColor { get; set; }
Public ReadWrite Property HeaderColor As Nullable<Color>
var nullable = contactPanel.headerColor;
contactPanel.headerColor = nullable;
Value
IReference<Color> Nullable<Color> Nullable<Color> Nullable<Color>

A Color that represents the desired color.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
Capabilities
contactsSystem

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() ClosePanel()

Closes the Contact Panel.

public : void ClosePanel()
public void ClosePanel()
Public Function ClosePanel() As void
contactPanel.closePanel();
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
Capabilities
contactsSystem

Remarks

This method must be called from the main UI thread.

See Also

Events

Closing Closing Closing Closing

Occurs when the Contact Panel is closing.

public : event TypedEventHandler Closing<ContactPanel, ContactPanelClosingEventArgs>
public event TypedEventHandler Closing<ContactPanel, ContactPanelClosingEventArgs>
Public Event TypedEventHandler Closing( Of ( Of ContactPanel ), ( Of ContactPanelClosingEventArgs ))
function onClosing(eventArgs){/* Your code */}


contactPanel.addEventListener("closing", onClosing);
contactPanel.removeEventListener("closing", onClosing);
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
Capabilities
contactsSystem
See Also

LaunchFullAppRequested LaunchFullAppRequested LaunchFullAppRequested LaunchFullAppRequested

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

public : event TypedEventHandler LaunchFullAppRequested<ContactPanel, ContactPanelLaunchFullAppRequestedEventArgs>
public event TypedEventHandler LaunchFullAppRequested<ContactPanel, ContactPanelLaunchFullAppRequestedEventArgs>
Public Event TypedEventHandler LaunchFullAppRequested( Of ( Of ContactPanel ), ( Of ContactPanelLaunchFullAppRequestedEventArgs ))
function onLaunchFullAppRequested(eventArgs){/* Your code */}


contactPanel.addEventListener("launchFullAppRequested", onLaunchFullAppRequested);
contactPanel.removeEventListener("launchFullAppRequested", onLaunchFullAppRequested);
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
Capabilities
contactsSystem

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.