TempProfileEditUnit.xaml.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Navigation;
  14. using System.Windows.Shapes;
  15. namespace ParameterModule.Controls;
  16. /// <summary>
  17. /// Interaction logic for TempProfileEditUnit.xaml
  18. /// </summary>
  19. public partial class TempProfileEditUnit : UserControl
  20. {
  21. public TempProfileEditUnit()
  22. {
  23. InitializeComponent();
  24. }
  25. public TempProfileInfo Source
  26. {
  27. get { return (TempProfileInfo)GetValue(SourceProperty); }
  28. set { SetValue(SourceProperty, value); }
  29. }
  30. // Using a DependencyProperty as the backing store for Source. This enables animation, styling, binding, etc...
  31. public static readonly DependencyProperty SourceProperty =
  32. DependencyProperty.Register(nameof(Source), typeof(TempProfileInfo), typeof(TempProfileEditUnit), new PropertyMetadata(default));
  33. public string GroupName
  34. {
  35. get { return (string)GetValue(GroupNameProperty); }
  36. set { SetValue(GroupNameProperty, value); }
  37. }
  38. // Using a DependencyProperty as the backing store for GroupName. This enables animation, styling, binding, etc...
  39. public static readonly DependencyProperty GroupNameProperty =
  40. DependencyProperty.Register(nameof(GroupName), typeof(string), typeof(TempProfileEditUnit), new PropertyMetadata(default));
  41. }