ImageEditProperty.xaml.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using PDF_Office.CustomControl.CompositeControl;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  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.PDFEdit
  17. {
  18. /// <summary>
  19. /// ImageEditProperty.xaml 的交互逻辑
  20. /// </summary>
  21. public partial class ImageEditProperty : UserControl
  22. {
  23. public List<ComboDataItem> Items { get; private set; }
  24. public ImageEditProperty()
  25. {
  26. InitializeComponent();
  27. Init();
  28. }
  29. private void Init()
  30. {
  31. Items = new List<ComboDataItem>();
  32. var item = new ComboDataItem(0);
  33. Items.Add(item);
  34. item = new ComboDataItem(10);
  35. Items.Add(item);
  36. item = new ComboDataItem(25);
  37. Items.Add(item);
  38. item = new ComboDataItem(50);
  39. Items.Add(item);
  40. item = new ComboDataItem(75);
  41. Items.Add(item);
  42. item = new ComboDataItem(80);
  43. Items.Add(item);
  44. item = new ComboDataItem(100);
  45. Items.Add(item);
  46. slid.SetItemSource(Items);
  47. }
  48. }
  49. }