トルネード

毛利のメモ書き

UWP 入門 - 既存のタイトルバー非表示 ExtendViewIntoTitleBar

既存のタイトルバー非表示

ExtendViewIntoTitleBartrueするとタイトルバーが非表示になります。
App.xaml.csWindows.ApplicationModel.Core追加します。

using Windows.ApplicationModel.Core;

App.xaml.csにコード内にOnLaunched()があるので、1行追加

protected override void OnLaunched(LaunchActivatedEventArgs e)
{
    //下記の1行追加
    CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true;
    Frame rootFrame = Window.Current.Content as Frame;

f:id:mojeld:20180728172744g:plain