Class DropDownFlyout
Represents a flyout control that is used in drop-down controls like DatePicker, TimePicker, ColorPicker etc.
Namespace: Syncfusion.UI.Xaml.Editors
Assembly: Syncfusion.Editors.WinUI.dll
Syntax
public class DropDownFlyout : FlyoutBase
Remarks
The Flyout can be light dismissed by clicking or tapping outside of it, pressing the Esc key.
Constructors
DropDownFlyout()
Initializes a new instance of the DropDownFlyout class.
Declaration
public DropDownFlyout()
Fields
ContentProperty
Identifies Content dependency property.
Declaration
public static readonly DependencyProperty ContentProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
HeightProperty
Identifies Height dependency property.
Declaration
public static readonly DependencyProperty HeightProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
ShowSubmitButtonsProperty
Identifies ShowSubmitButtons dependency property.
Declaration
public static readonly DependencyProperty ShowSubmitButtonsProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
Properties
Content
Gets or sets the content of the DropDownFlyoutPresenter control.
Declaration
public object Content { get; set; }
Property Value
Type |
---|
System.Object |
Height
Gets or sets the height of the DropDownFlyoutPresenter control.
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is Auto. When Height is auto, popup height changes based on size required by Content. |
ShowSubmitButtons
Gets or sets a value indicating whether to show or hide the Accept and Decline button in DropDownFlyoutPresenter control.
Declaration
public bool ShowSubmitButtons { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true. Accept and Decline button is shown below Content. |
Methods
CreatePresenter()
Declaration
protected override Control CreatePresenter()
Returns
Type |
---|
Microsoft.UI.Xaml.Controls.Control |
OnAcceptButtonClicked()
Called when Accept button is clicked.
Declaration
protected virtual void OnAcceptButtonClicked()
OnDeclineButtonClicked()
Called when cancel button is clicked.
Declaration
protected virtual void OnDeclineButtonClicked()
Events
AcceptButtonClicked
Occurs when Accept button is clicked.
Declaration
public event EventHandler AcceptButtonClicked
Event Type
Type |
---|
System.EventHandler |
DeclineButtonClicked
Occurs when Decline button is clicked.
Declaration
public event EventHandler DeclineButtonClicked
Event Type
Type |
---|
System.EventHandler |