TextBlock.SelectionFlyout Property
Definition
Gets or sets the flyout that is shown when text is selected using touch or pen, or null if no flyout is shown.
Equivalent WinUI property: Microsoft.UI.Xaml.Controls.TextBlock.SelectionFlyout.
public:
property FlyoutBase ^ SelectionFlyout { FlyoutBase ^ get(); void set(FlyoutBase ^ value); };
FlyoutBase SelectionFlyout();
void SelectionFlyout(FlyoutBase value);
public FlyoutBase SelectionFlyout { get; set; }
var flyoutBase = textBlock.selectionFlyout;
textBlock.selectionFlyout = flyoutBase;
Public Property SelectionFlyout As FlyoutBase
Property Value
The flyout that is shown when text is selected using touch or pen, or null if no flyout is shown. The default is an instance of TextCommandBarFlyout.
Windows 10 requirements
Device family |
Windows 10, version 1809 (introduced in 10.0.17763.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v7.0)
|
Remarks
Important
If using a keyboard for text selection within a TextBlock, the user must first activate Caret Browsing (with the app in the foreground, press F7).