コード例 #1
0
ファイル: DanmakuMTC.cs プロジェクト: Berrysoft/biliuwp
        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);
        }
コード例 #2
0
ファイル: DanmakuMTC.cs プロジェクト: Berrysoft/biliuwp
        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);
            }
        }