Gasline.cs 677 B

1234567891011121314151617181920212223242526272829
  1. using System.Windows;
  2. using System.Windows.Controls;
  3. namespace OpenSEMI.Ctrlib.Controls
  4. {
  5. public class Gasline : Control
  6. {
  7. public static readonly DependencyProperty OrientationProperty;
  8. public Orientation Orientation
  9. {
  10. get
  11. {
  12. return (Orientation)GetValue(OrientationProperty);
  13. }
  14. set
  15. {
  16. SetValue(OrientationProperty, value);
  17. }
  18. }
  19. static Gasline()
  20. {
  21. OrientationProperty = DependencyProperty.Register("Orientation", typeof(Orientation), typeof(Gasline), new PropertyMetadata(Orientation.Horizontal));
  22. FrameworkElement.DefaultStyleKeyProperty.OverrideMetadata(typeof(Gasline), new FrameworkPropertyMetadata(typeof(Gasline)));
  23. }
  24. }
  25. }