using System; using System.Collections.Generic; using System.Linq; using System.Text; 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 XGL.UControl { /// /// UCArea.xaml 的交互逻辑 /// public partial class UCArea : UserControl { public string txtTittle { get { return lblName.Content.ToString(); } set { lblName.Content = value; } } public string txtTotal { get { return lblTotal.Content.ToString(); } set { lblTotal.Content = value; process.Maximum = Convert.ToDouble(value); } } public string txtCurr { get { return lblCurr.Content.ToString(); } set { lblCurr.Content = value; process.Value = Convert.ToDouble(value); } } public double processValue { get { return process.Value; } set { process.Value = value; } } public UCArea() { InitializeComponent(); } } }