| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 | using System.Windows;using System.Windows.Controls;using System.Windows.Media;namespace PunkHPX8_Themes.UserControls{    /// <summary>    /// Interaction logic for FlowPipe.xaml    /// </summary>    public partial class FlowPipe : UserControl    {        public FlowPipe()        {            InitializeComponent();                    }        public static readonly DependencyProperty FCornerRadiusProperty = DependencyProperty.Register(           "FCornerRadius", typeof(CornerRadius), typeof(FlowPipe),           new FrameworkPropertyMetadata(new CornerRadius(2), FrameworkPropertyMetadataOptions.AffectsRender));                public static readonly DependencyProperty IsFlowingProperty = DependencyProperty.Register(            "IsFlowing", typeof (bool), typeof (FlowPipe),            new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        public static readonly DependencyProperty FlowColorProperty = DependencyProperty.Register(           "FlowColor", typeof(SolidColorBrush), typeof(FlowPipe),           new FrameworkPropertyMetadata(new SolidColorBrush(Colors.Green), FrameworkPropertyMetadataOptions.AffectsRender));        public static readonly DependencyProperty RotateTransformValueProperty = DependencyProperty.Register(         "RotateTransformValue", typeof(int), typeof(FlowPipe));        public static readonly DependencyProperty IsReverseProperty = DependencyProperty.Register(           "IsReverse", typeof(bool), typeof(FlowPipe),           new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        public int RotateTransformValue        {            get { return (int)this.GetValue(RotateTransformValueProperty); }            set { this.SetValue(RotateTransformValueProperty, value); }        }        public bool IsFlowing        {            get { return (bool) this.GetValue(IsFlowingProperty); }            set { this.SetValue(IsFlowingProperty, value); }        }        public SolidColorBrush FlowColor        {            get { return (SolidColorBrush)this.GetValue(FlowColorProperty); }            set { this.SetValue(FlowColorProperty, value); }        }        public bool IsReverse        {            get { return (bool)this.GetValue(IsReverseProperty); }            set { this.SetValue(IsReverseProperty, value); }        }        public CornerRadius FCornerRadius        {            get { return (CornerRadius)this.GetValue(FCornerRadiusProperty); }            set { this.SetValue(FCornerRadiusProperty, value); }        }        public bool IsVertical { get; set; }        protected override void OnRender(DrawingContext drawingContext)        {            base.OnRender(drawingContext);        }    }}
 |