InitControl.xaml.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 SummaryModule.Controls.Transfer;
  16. /// <summary>
  17. /// Interaction logic for InitControl.xaml
  18. /// </summary>
  19. public partial class InitControl : UserControl
  20. {
  21. public InitControl()
  22. {
  23. InitializeComponent();
  24. }
  25. public bool IsManual
  26. {
  27. get { return (bool)GetValue(IsManualProperty); }
  28. set { SetValue(IsManualProperty, value); }
  29. }
  30. // Using a DependencyProperty as the backing store for IsManual. This enables animation, styling, binding, etc...
  31. public static readonly DependencyProperty IsManualProperty =
  32. DependencyProperty.Register(nameof(IsManual), typeof(bool), typeof(InitControl), new PropertyMetadata(default));
  33. public string Title
  34. {
  35. get { return (string)GetValue(TitleProperty); }
  36. set { SetValue(TitleProperty, value); }
  37. }
  38. // Using a DependencyProperty as the backing store for Title. This enables animation, styling, binding, etc...
  39. public static readonly DependencyProperty TitleProperty =
  40. DependencyProperty.Register(nameof(Title), typeof(string), typeof(InitControl), new PropertyMetadata(default));
  41. }