Fims.xaml.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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.BaseMotion
  16. {
  17. /// <summary>
  18. /// Interaction logic for Fims.xaml
  19. /// </summary>
  20. public partial class Fims : UserControl
  21. {
  22. public Fims()
  23. {
  24. InitializeComponent();
  25. }
  26. public string Header
  27. {
  28. get { return (string)GetValue(HeaderProperty); }
  29. set { SetValue(HeaderProperty, value); }
  30. }
  31. // Using a DependencyProperty as the backing store for Header. This enables animation, styling, binding, etc...
  32. public static readonly DependencyProperty HeaderProperty =
  33. DependencyProperty.Register(nameof(Header), typeof(string), typeof(Fims), new PropertyMetadata(default));
  34. public ICommand Command
  35. {
  36. get { return (ICommand)GetValue(CommandProperty); }
  37. set { SetValue(CommandProperty, value); }
  38. }
  39. // Using a DependencyProperty as the backing store for Command. This enables animation, styling, binding, etc...
  40. public static readonly DependencyProperty CommandProperty =
  41. DependencyProperty.Register(nameof(Command), typeof(ICommand), typeof(Fims), new PropertyMetadata(default));
  42. public object CommandParameter
  43. {
  44. get { return (object)GetValue(CommandParameterProperty); }
  45. set { SetValue(CommandParameterProperty, value); }
  46. }
  47. // Using a DependencyProperty as the backing store for CommandParameter. This enables animation, styling, binding, etc...
  48. public static readonly DependencyProperty CommandParameterProperty =
  49. DependencyProperty.Register(nameof(CommandParameter), typeof(object), typeof(Fims), new PropertyMetadata(default));
  50. public bool FoupLoaded
  51. {
  52. get { return (bool)GetValue(FoupLoadedProperty); }
  53. set { SetValue(FoupLoadedProperty, value); }
  54. }
  55. // Using a DependencyProperty as the backing store for FoupLoaded. This enables animation, styling, binding, etc...
  56. public static readonly DependencyProperty FoupLoadedProperty =
  57. DependencyProperty.Register(nameof(FoupLoaded), typeof(bool), typeof(Fims), new PropertyMetadata(false));
  58. }
  59. }