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 SHJX.Service.Librarys.MainLibrarys { /// /// DissolveElement.xaml 的交互逻辑 /// public partial class DissolveElement : UserControl { public DissolveElement() { InitializeComponent(); } public double ProcessValue { get => (double)GetValue(ProcessValueProperty); set => SetValue(ProcessValueProperty, value); } public static readonly DependencyProperty ProcessValueProperty = DependencyProperty.Register(nameof(ProcessValue), typeof(double), typeof(DissolveElement), new UIPropertyMetadata(0.0, (obj, args) => { var control = obj as DissolveElement; var path = control?.process_value; path.Value = (double)args.NewValue; })); public string DissolveText { get => (string)GetValue(DissolveTextProperty); set => SetValue(DissolveTextProperty, value); } public static readonly DependencyProperty DissolveTextProperty = DependencyProperty.Register(nameof(DissolveText), typeof(string), typeof(DissolveElement), new UIPropertyMetadata(string.Empty, (obj, args) => { var control = obj as DissolveElement; var path = control?.txt_dissolve_show; path.Text = (string)args.NewValue; })); } }