UWP标题栏扩展
0x00.添加引用
在默认引用下添加
using Windows.ApplicationModel.Core
0x01.实现
public MainPage()
{
this.InitiallizeComponent();
var titlebar=CoreApplication.GetCurrentView().TitleBar;
titlebar.ExtendViewIntoTitleBar=true;
Window.Current.SetTitleBar(thingsuneed);//thingsuneed 为需要扩展至标题栏的控件的X:name
}