CheckBoxDemos.BasicCheckBoxXAMLPage.OnUnderlineCheckBoxChanged C# (CSharp) Method

OnUnderlineCheckBoxChanged() public method

public OnUnderlineCheckBoxChanged ( object sender, CheckedChangedEventArgs e ) : void
sender object
e CheckedChangedEventArgs
return void
        void OnUnderlineCheckBoxChanged(object sender, CheckedChangedEventArgs e)
        {
            if (e.Value)
            {
                label.TextDecorations |= TextDecorations.Underline;
            }
            else
            {
                label.TextDecorations &= ~TextDecorations.Underline;
            }
        }