共用方式為


SoftInputExtensions.ShowSoftInputAsync(ITextInput, CancellationToken) 方法

定義

如果目前隱藏虛輸入窗格,這會嘗試顯示它。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ ShowSoftInputAsync(Microsoft::Maui::ITextInput ^ targetView, System::Threading::CancellationToken token);
public static System.Threading.Tasks.Task<bool> ShowSoftInputAsync (this Microsoft.Maui.ITextInput targetView, System.Threading.CancellationToken token);
static member ShowSoftInputAsync : Microsoft.Maui.ITextInput * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function ShowSoftInputAsync (targetView As ITextInput, token As CancellationToken) As Task(Of Boolean)

參數

targetView
ITextInput
token
CancellationToken

取消權杖

傳回

true如果平台能夠顯示軟式輸入窗格,則傳回 。

適用於