Exemple #1
0
 private void ToggleSplitButton_IsCheckedChanged(ToggleSplitButton sender, ToggleSplitButtonIsCheckedChangedEventArgs args)
 {
     ToggleStateTextBlock.Text = ToggleSplitButton.IsChecked ? "Checked" : "Unchecked";
 }
Exemple #2
0
 private void MyListButton_IsCheckedChanged(Microsoft.UI.Xaml.Controls.ToggleSplitButton sender, Microsoft.UI.Xaml.Controls.ToggleSplitButtonIsCheckedChangedEventArgs args)
 {
     if (sender.IsChecked)
     {
         //add bulleted list
         myRichEditBox.Document.Selection.ParagraphFormat.ListType = _type;
     }
     else
     {
         //remove bulleted list
         myRichEditBox.Document.Selection.ParagraphFormat.ListType = MarkerType.None;
     }
 }