CPDFOpacityControl.xaml.cs 684 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Windows.Controls;
  3. namespace Compdfkit_Tools.Common
  4. {
  5. public partial class CPDFOpacityControl : UserControl
  6. {
  7. public event EventHandler OpacityChanged;
  8. public int OpacityValue
  9. {
  10. get=> CPDFOpacityUI.OpacityValue;
  11. set => CPDFOpacityUI.OpacityValue = value;
  12. }
  13. public CPDFOpacityControl()
  14. {
  15. InitializeComponent();
  16. CPDFOpacityUI.OpacityChanged += CPDFOpacityUI_OpacityChanged;
  17. }
  18. private void CPDFOpacityUI_OpacityChanged(object sender, EventArgs e)
  19. {
  20. OpacityChanged?.Invoke(this, EventArgs.Empty);
  21. }
  22. }
  23. }