12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Media;
- namespace Venus_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 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);
- }
- }
- }
|