ApplicationBar.MainPage.button1Show_Checked C# (CSharp) 메소드

button1Show_Checked() 개인적인 메소드

private button1Show_Checked ( object sender, RoutedEventArgs e ) : void
sender object
e Windows.UI.Xaml.RoutedEventArgs
리턴 void
        private void button1Show_Checked(object sender, RoutedEventArgs e)
        {
            var checkBox = (CheckBox)sender;
            if (checkBox.IsChecked.Value)
                ApplicationBar.Buttons.Insert(0, button1);
            else
                ApplicationBar.Buttons.Remove(button1);
        }