using System.Windows; using System.Windows.Controls; using System.Windows.Media; namespace Venus_Themes.UserControls { /// /// Interaction logic for FlowPipe.xaml /// 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 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 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); } } }