ImageEditProperty.xaml.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using PDF_Master.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_Master.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 ComboDataItem Items2;
  25. public ImageEditProperty()
  26. {
  27. InitializeComponent();
  28. Init();
  29. }
  30. private void Init()
  31. {
  32. Items = new List<ComboDataItem>();
  33. var item = new ComboDataItem(25,"%");
  34. Items.Add(item);
  35. item = new ComboDataItem(50,"%");
  36. Items.Add(item);
  37. item = new ComboDataItem(75,"%");
  38. Items.Add(item);
  39. item = new ComboDataItem(100,"%");
  40. Items.Add(item);
  41. slid.SetItemSource(Items);
  42. }
  43. }
  44. }