GaslineJoint.cs 706 B

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