FingerpointImage.xaml.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 NEIntelligentControl2.Views.User
  16. {
  17. /// <summary>
  18. /// 指纹图片
  19. /// </summary>
  20. public partial class FingerpointImage : UserControl
  21. {
  22. public static readonly DependencyProperty IsActiveProperty = DependencyProperty.Register("IsActive", typeof(bool), typeof(FingerpointImage));
  23. /// <summary>
  24. /// 是否活动
  25. /// </summary>
  26. public bool IsActive { get => (bool)GetValue(IsActiveProperty); set => SetValue(IsActiveProperty, value); }
  27. public FingerpointImage()
  28. {
  29. InitializeComponent();
  30. }
  31. internal void ShowImage(BitmapImage bitmapImage)
  32. {
  33. IsActive = false;
  34. _IActive.Source = bitmapImage;
  35. }
  36. }
  37. }