CustomComBobox.cs 891 B

123456789101112131415161718192021222324252627282930
  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.Media;
  9. namespace Venus_Themes.CustomControls
  10. {
  11. public class CustomComBobox:ComboBox
  12. {
  13. static CustomComBobox()
  14. {
  15. DefaultStyleKeyProperty.OverrideMetadata(typeof(CustomComBobox), new FrameworkPropertyMetadata(typeof(CustomComBobox)));
  16. }
  17. public CornerRadius CustomCornerRadius
  18. {
  19. get { return (CornerRadius)GetValue(CustomCornerRadiusProperty); }
  20. set { SetValue(CustomCornerRadiusProperty, value); }
  21. }
  22. public static readonly DependencyProperty CustomCornerRadiusProperty =
  23. DependencyProperty.Register("CustomCornerRadius", typeof(CornerRadius), typeof(CustomComBobox));
  24. }
  25. }