public void ToFull() { IsFullWindow = true; (GetTemplateChild("MyFullWindowButton") as AppBarButton).Icon = new BitmapIcon() { UriSource = new Uri("ms-appx:///Assets/PlayerAssets/narrow.png") }; FullWindows?.Invoke(this, EventArgs.Empty); }
private void Btn_Full_Click(object sender, RoutedEventArgs e) { if (!IsFullWindow) { IsFullWindow = true; (sender as AppBarButton).Icon = new BitmapIcon() { UriSource = new Uri("ms-appx:///Assets/PlayerAssets/narrow.png") }; FullWindows?.Invoke(this, EventArgs.Empty); } else { IsFullWindow = false; (sender as AppBarButton).Icon = new BitmapIcon() { UriSource = new Uri("ms-appx:///Assets/PlayerAssets/fullscreen.png") }; ExitFullWindows?.Invoke(this, EventArgs.Empty); } }