Exemplo n.º 1
0
 public void ExitFull()
 {
     IsFullWindow = false;
     (GetTemplateChild("MyFullWindowButton") as AppBarButton).Icon = new BitmapIcon()
     {
         UriSource = new Uri("ms-appx:///Assets/PlayerAssets/fullscreen.png")
     };
     ExitFullWindows?.Invoke(this, EventArgs.Empty);
 }
Exemplo n.º 2
0
        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);
            }
        }