using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace VirgoUI.Client.Controls.Parts { /// /// DisplayDoubleValueControl.xaml 的交互逻辑 /// public partial class DisplayDoubleValueControl : UserControl { public DisplayDoubleValueControl() { InitializeComponent(); rectBkground.Fill = Brushes.Gray; rectBkground.Stroke = new SolidColorBrush(System.Windows.Media.Color.FromRgb(0X37, 0X37, 0X37)); labelValue.Foreground = Brushes.LightYellow; rectBkground.StrokeThickness = 1; } public static readonly DependencyProperty FeedBackProperty = DependencyProperty.Register( "FeedBack", typeof(double), typeof(DisplayDoubleValueControl), new FrameworkPropertyMetadata(new double(), FrameworkPropertyMetadataOptions.AffectsRender)); public double FeedBack { get { return (double)this.GetValue(FeedBackProperty); } set { this.SetValue(FeedBackProperty, value); } } } }