LoginSignup
1
1

XAML101:フルスクリーンにする

Posted at

目的

フルスクリーンでウインドウを表示したい

サンプルコード

sample.xaml.cs
        private void btnFullScreen_Click(object sender, RoutedEventArgs e)
        {
            Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().TryEnterFullScreenMode();
        }

        private void btnFullScreenReset_Click(object sender, RoutedEventArgs e)
        {
            Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().ExitFullScreenMode();
        }

画面例

  • 通常状態
    image.png

  • フルスクリーン化
    image.png

  • マウスポインタを一番上まで持ってくると
    image.png

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1