ApplicationBar.MainPage.appBarOpacity_Clicked C# (CSharp) Méthode

appBarOpacity_Clicked() private méthode

private appBarOpacity_Clicked ( object sender, RoutedEventArgs e ) : void
sender object
e Windows.UI.Xaml.RoutedEventArgs
Résultat void
        private void appBarOpacity_Clicked(object sender, RoutedEventArgs e)
        {
            var checkBox = (CheckBox)sender;
            if (checkBox.IsChecked.Value)
                ApplicationBar.Opacity = 0.5;
            else
                ApplicationBar.Opacity = 1.0;
        }