Foup.xaml.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System.Windows;
  2. using System.Windows.Controls;
  3. namespace VirgoUI.Client.Controls.Parts
  4. {
  5. /// <summary>
  6. /// Foup.xaml 的交互逻辑
  7. /// </summary>
  8. public partial class Foup : UserControl
  9. {
  10. public Foup()
  11. {
  12. InitializeComponent();
  13. }
  14. public Visibility IdleVisibility
  15. {
  16. get { return (Visibility)GetValue(IdleVisibilityProperty); }
  17. set { SetValue(IdleVisibilityProperty, value); }
  18. }
  19. public static readonly DependencyProperty IdleVisibilityProperty =
  20. DependencyProperty.Register("IdleVisibility", typeof(Visibility), typeof(Foup), new FrameworkPropertyMetadata(Visibility.Hidden, FrameworkPropertyMetadataOptions.AffectsRender));
  21. public Visibility BusyVisibility
  22. {
  23. get { return (Visibility)GetValue(BusyVisibilityProperty); }
  24. set { SetValue(BusyVisibilityProperty, value); }
  25. }
  26. public static readonly DependencyProperty BusyVisibilityProperty =
  27. DependencyProperty.Register("BusyVisibility", typeof(Visibility), typeof(Foup), new FrameworkPropertyMetadata(Visibility.Hidden, FrameworkPropertyMetadataOptions.AffectsRender));
  28. public Visibility CompleteVisibility
  29. {
  30. get { return (Visibility)GetValue(CompleteVisibilityProperty); }
  31. set { SetValue(CompleteVisibilityProperty, value); }
  32. }
  33. public static readonly DependencyProperty CompleteVisibilityProperty =
  34. DependencyProperty.Register("CompleteVisibility", typeof(Visibility), typeof(Foup), new FrameworkPropertyMetadata(Visibility.Hidden, FrameworkPropertyMetadataOptions.AffectsRender));
  35. public Visibility ErrorVisibility
  36. {
  37. get { return (Visibility)GetValue(ErrorVisibilityProperty); }
  38. set { SetValue(ErrorVisibilityProperty, value); }
  39. }
  40. public static readonly DependencyProperty ErrorVisibilityProperty =
  41. DependencyProperty.Register("ErrorVisibility", typeof(Visibility), typeof(Foup), new FrameworkPropertyMetadata(Visibility.Hidden, FrameworkPropertyMetadataOptions.AffectsRender));
  42. }
  43. }