public MainPage() { this.InitializeComponent(); coreTitleBar.ExtendViewIntoTitleBar = true; Window.Current.SetTitleBar(myTitle); var titlebar = ApplicationView.GetForCurrentView().TitleBar; titlebar.ButtonBackgroundColor = Color.FromArgb(0, 0, 0, 0); titlebar.ButtonForegroundColor = Colors.Black; UiBlur.getblur(MyGrid); ImgitemOb = new ObservableCollection <Imgitem>(); TextitemOb = new ObservableCollection <TextItem>(); AddNewPic.RenderTransform = new TranslateTransform(); }
public PicinPic() { this.InitializeComponent(); UiBlur.getblur(MyBorder); coreTitleBar.ExtendViewIntoTitleBar = true; //可以尝试实时监测鼠标焦点的位置来判断是MyBorder来做标题栏还是title做标题栏 Window.Current.SetTitleBar(title); var titlebar = ApplicationView.GetForCurrentView().TitleBar; titlebar.ButtonBackgroundColor = Color.FromArgb(0, 0, 0, 0); titlebar.ButtonForegroundColor = Colors.Black; tt = new TranslateTransform(); ShowImge.RenderTransform = tt; MyScrollviewer.IsZoomInertiaEnabled = false; }