close

XAML:

<Button x:Name="hideButton" Opacity="0.0"></Button>

 

C#:

hideButton.Focus(Windows.UI.Xaml.FocusState.Programmatic);

 

經過測試,在XAML中使用Visibility="Collapsed",鍵盤還是會在,但又需要達到按鈕隱藏功能,可以用Opacity = 0.0

arrow
arrow
    全站熱搜

    小賢 發表在 痞客邦 留言(0) 人氣()