You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.4 KiB
C#

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
{
/// <summary>
/// UCArea.xaml 的交互逻辑
/// </summary>
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();
}
}
}