PickerFlyout PickerFlyout PickerFlyout Class

Represents a custom picker control. (Not recommended for Universal Windows Platform (UWP) app. See @Windows.UI.Xaml.Controls.Flyout.)

Note

PickerFlyout is not supported for use in Universal Windows Platform (UWP) app for Windows 10. Instead, use a Flyout with a custom UI to present a custom picker control.

Syntax

Declaration

public sealed class PickerFlyoutpublic sealed class PickerFlyoutPublic NotInheritable Class PickerFlyout

Inheritance Hierarchy

Inherited Members

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Remarks

Note

PickerFlyout is not supported for use in Universal Windows Platform (UWP) app for Windows 10. Instead, use a Flyout with a custom UI to present a custom picker control.

Constructors summary

Initializes a new instance of the PickerFlyout class.

Properties summary

Gets or sets whether the confirmation buttons are visible.

Identifies the ConfirmationButtonsVisible dependency property.

Gets or sets the content that is contained within the picker.

Gets the identifier for the Content dependency property.

Methods summary

Begins an asynchronous operation to show the flyout placed in relation to the specified element.

Events summary

Occurs when the user has tapped a confirmation button to confirm the selection.

Constructors

  • PickerFlyout()
    PickerFlyout()
    PickerFlyout()
    PickerFlyout()

    Initializes a new instance of the PickerFlyout class.

    public PickerFlyout()public PickerFlyout()Public Function PickerFlyout() As

Properties

  • ConfirmationButtonsVisible
    ConfirmationButtonsVisible
    ConfirmationButtonsVisible
    ConfirmationButtonsVisible

    Gets or sets whether the confirmation buttons are visible.

    public bool ConfirmationButtonsVisible { get; set; }public bool ConfirmationButtonsVisible { get; set; }Public ReadWrite Property ConfirmationButtonsVisible As bool

    Property Value

    • bool
      bool
      bool

      True of the confirmation buttons are visible; Otherwise, false.

  • ConfirmationButtonsVisibleProperty
    ConfirmationButtonsVisibleProperty
    ConfirmationButtonsVisibleProperty
    ConfirmationButtonsVisibleProperty

    Identifies the ConfirmationButtonsVisible dependency property.

    public static DependencyProperty ConfirmationButtonsVisibleProperty { get; }public static DependencyProperty ConfirmationButtonsVisibleProperty { get; }Public Static ReadOnly Property ConfirmationButtonsVisibleProperty As DependencyProperty

    Property Value

  • Content
    Content
    Content
    Content

    Gets or sets the content that is contained within the picker.

    public UIElement Content { get; set; }public UIElement Content { get; set; }Public ReadWrite Property Content As UIElement

    Property Value

  • ContentProperty
    ContentProperty
    ContentProperty
    ContentProperty

    Gets the identifier for the Content dependency property.

    public static DependencyProperty ContentProperty { get; }public static DependencyProperty ContentProperty { get; }Public Static ReadOnly Property ContentProperty As DependencyProperty

    Property Value

Methods

  • ShowAtAsync(Windows.UI.Xaml.FrameworkElement)
    ShowAtAsync(Windows.UI.Xaml.FrameworkElement)
    ShowAtAsync(Windows.UI.Xaml.FrameworkElement)
    ShowAtAsync(Windows.UI.Xaml.FrameworkElement)

    Begins an asynchronous operation to show the flyout placed in relation to the specified element.

    public IAsyncOperation<bool> ShowAtAsync(Windows.UI.Xaml.FrameworkElement target)public IAsyncOperation<bool> ShowAtAsync(Windows.UI.Xaml.FrameworkElement target)Public Function ShowAtAsync(target As Windows.UI.Xaml.FrameworkElement) As IAsyncOperation( Of bool )

    Parameters

    Returns

    • An asynchronous operation.

Events

  • Confirmed
    Confirmed
    Confirmed
    Confirmed

    Occurs when the user has tapped a confirmation button to confirm the selection.

    public event TypedEventHandler Confirmedpublic event TypedEventHandler ConfirmedPublic Event Confirmed

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.UI.Xaml.Markup.ContentPropertyAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.ThreadingAttribute

Details

Assembly

Windows.UI.Xaml.Controls.dll