using OpenSEMI.Ctrlib.Types; using System.Windows; using System.Windows.Controls; namespace OpenSEMI.Ctrlib.Controls { public class GaslineJoint : Control { public static readonly DependencyProperty JointTypeProperty; public JointType JointType { get { return (JointType)GetValue(JointTypeProperty); } set { SetValue(JointTypeProperty, value); } } static GaslineJoint() { JointTypeProperty = DependencyProperty.Register("JointType", typeof(JointType), typeof(GaslineJoint), new PropertyMetadata(JointType.CROSS)); FrameworkElement.DefaultStyleKeyProperty.OverrideMetadata(typeof(GaslineJoint), new FrameworkPropertyMetadata(typeof(GaslineJoint))); } } }