FreetextAnnotProperty.xaml.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Controls.Primitives;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. namespace PDF_Office.Views.PropertyPanel.AnnotPanel
  17. {
  18. /// <summary>
  19. /// FreetextAnnotProperty.xaml 的交互逻辑
  20. /// </summary>
  21. public partial class FreetextAnnotProperty : UserControl
  22. {
  23. public FreetextAnnotProperty()
  24. {
  25. InitializeComponent();
  26. }
  27. private void BtnTextAlign_Click(object sender, RoutedEventArgs e)
  28. {
  29. var btn = sender as ToggleButton;
  30. foreach(var item in ToolGrid.Children)
  31. {
  32. var btnItem = item as ToggleButton;
  33. if(btnItem != null)
  34. {
  35. if(btn!= btnItem)
  36. btnItem.IsChecked = false;
  37. else
  38. btnItem.IsChecked = true;
  39. }
  40. }
  41. }
  42. }
  43. }