1234567891011121314151617181920212223242526272829 |
- using System.Windows;
- using System.Windows.Controls;
- namespace OpenSEMI.Ctrlib.Controls
- {
- public class Gasline : Control
- {
- public static readonly DependencyProperty OrientationProperty;
- public Orientation Orientation
- {
- get
- {
- return (Orientation)GetValue(OrientationProperty);
- }
- set
- {
- SetValue(OrientationProperty, value);
- }
- }
- static Gasline()
- {
- OrientationProperty = DependencyProperty.Register("Orientation", typeof(Orientation), typeof(Gasline), new PropertyMetadata(Orientation.Horizontal));
- FrameworkElement.DefaultStyleKeyProperty.OverrideMetadata(typeof(Gasline), new FrameworkPropertyMetadata(typeof(Gasline)));
- }
- }
- }
|