Gasline.cs 697 B

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