/// <summary>
 /// Handles the SelectionChanged event of the richTextBox control.
 /// </summary>
 /// <param name="obj">The source of the event.</param>
 /// <param name="args">The <see cref="Syncfusion.UI.Xaml.RichTextBoxAdv.SelectionChangedEventArgs"/> instance containing the event data.</param>
 /// <exception cref="System.NotImplementedException"></exception>
 void RichTextBox_SelectionChanged(object obj, Syncfusion.UI.Xaml.RichTextBoxAdv.SelectionChangedEventArgs args)
 {
     if (tableLayoutTab != null)
     {
         tableLayoutTab.Visibility = Visibility.Collapsed;
         if (ribbon.SelectedItem == tableLayoutTab)
         {
             ribbon.SelectedItem = homeTab;
         }
     }
     if (!Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons"))
     {
         if (richTextBox.Selection.EditingContext.Type == EditingContextType.Table && !richTextBox.IsReadOnly)
         {
             tableLayoutTab.Visibility = Visibility.Visible;
             ribbon.SelectedItem       = tableLayoutTab;
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Handles the SelectionChanged event of the richTextBox control.
 /// </summary>
 /// <param name="obj">The source of the event.</param>
 /// <param name="args">The <see cref="Syncfusion.UI.Xaml.RichTextBoxAdv.SelectionChangedEventArgs"/> instance containing the event data.</param>
 /// <exception cref="System.NotImplementedException"></exception>
 void RichTextBox_SelectionChanged(object obj, Syncfusion.UI.Xaml.RichTextBoxAdv.SelectionChangedEventArgs args)
 {
 }