Edit

Share via


PeoplePicker Class

Definition

Caution

This control will be removed in a future release of the toolkit. Please use the new Graph controls at https://aka.ms/wgt

The PeoplePicker Control is a simple control that allows for selection of one or more users from an organizational AD.

[System.Obsolete("This control will be removed in a future release of the toolkit. Please use the new Graph controls at https://aka.ms/wgt")]
[Windows.UI.Xaml.TemplatePart(Name="SearchBox", Type=typeof(Windows.UI.Xaml.Controls.TextBox))]
[Windows.UI.Xaml.TemplatePart(Name="InternalSearchBox", Type=typeof(Windows.UI.Xaml.Controls.TextBox))]
[Windows.UI.Xaml.TemplatePart(Name="SearchResultListBox", Type=typeof(Windows.UI.Xaml.Controls.ListBox))]
[Windows.UI.Xaml.TemplatePart(Name="SelectionsListBox", Type=typeof(Windows.UI.Xaml.Controls.ListBox))]
[Windows.UI.Xaml.TemplatePart(Name="SearchResultPopup", Type=typeof(Windows.UI.Xaml.Controls.Primitives.Popup))]
[Windows.UI.Xaml.TemplatePart(Name="FlyoutContainer", Type=typeof(Windows.UI.Xaml.FrameworkElement))]
public class PeoplePicker : Windows.UI.Xaml.Controls.Control
[<System.Obsolete("This control will be removed in a future release of the toolkit. Please use the new Graph controls at https://aka.ms/wgt")>]
[<Windows.UI.Xaml.TemplatePart(Name="SearchBox", Type=typeof(Windows.UI.Xaml.Controls.TextBox))>]
[<Windows.UI.Xaml.TemplatePart(Name="InternalSearchBox", Type=typeof(Windows.UI.Xaml.Controls.TextBox))>]
[<Windows.UI.Xaml.TemplatePart(Name="SearchResultListBox", Type=typeof(Windows.UI.Xaml.Controls.ListBox))>]
[<Windows.UI.Xaml.TemplatePart(Name="SelectionsListBox", Type=typeof(Windows.UI.Xaml.Controls.ListBox))>]
[<Windows.UI.Xaml.TemplatePart(Name="SearchResultPopup", Type=typeof(Windows.UI.Xaml.Controls.Primitives.Popup))>]
[<Windows.UI.Xaml.TemplatePart(Name="FlyoutContainer", Type=typeof(Windows.UI.Xaml.FrameworkElement))>]
type PeoplePicker = class
    inherit Control
Public Class PeoplePicker
Inherits Control
Inheritance
Windows.UI.Xaml.Controls.Control
PeoplePicker
Attributes
ObsoleteAttribute Windows.UI.Xaml.TemplatePartAttribute

Constructors

PeoplePicker()

Initializes a new instance of the PeoplePicker class.

Fields

AllowMultipleProperty

Identifies the AllowMultiple dependency property.

GroupIdProperty

Identifies the GroupId dependency property.

PlaceholderTextProperty

Identifies the PlaceholderText dependency property.

SearchResultLimitProperty

Identifies the SearchResultLimit dependency property.

SelectionsProperty

Identifies the Selections dependency property.

Properties

AllowMultiple

Gets or sets a value indicating whether multiple people can be selected

GroupId

Gets or sets which group should search users in

PlaceholderText

Gets or sets the text to be displayed when no user is selected

RequiredDelegatedPermissions

Gets required delegated permissions for the PeoplePicker control

SearchResultLimit

Gets or sets the max person returned in the search results

Selections

Gets or sets the selected person list.

Methods

OnApplyTemplate()

Called when applying the control template.

Events

SelectionChanged

File is selected

Applies to