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 CapMachine.Shared.Controls
{
///
/// ValueShow.xaml 的交互逻辑
///
public partial class ValueShow : UserControl
{
public ValueShow()
{
InitializeComponent();
}
///
/// Value 数据
///
public double CellValue
{
get
{
return (double)base.GetValue(ValueShow.CellValueProperty);
}
set
{
base.SetValue(ValueShow.CellValueProperty, value);
}
}
public static readonly DependencyProperty CellValueProperty = DependencyProperty.Register("CellValue", typeof(double), typeof(ValueShow), new PropertyMetadata(0.0));
///
/// 单位
///
public string CellUnit
{
get
{
return (string)base.GetValue(ValueShow.CellUnitProperty);
}
set
{
base.SetValue(ValueShow.CellUnitProperty, value);
}
}
public static readonly DependencyProperty CellUnitProperty = DependencyProperty.Register("CellUnit", typeof(string), typeof(ValueShow), new PropertyMetadata(""));
///
/// 名称 标题
///
public string CellTitle
{
get
{
return (string)base.GetValue(ValueShow.CellTitleProperty);
}
set
{
base.SetValue(ValueShow.CellTitleProperty, value);
}
}
public static readonly DependencyProperty CellTitleProperty = DependencyProperty.Register("CellTitle", typeof(string), typeof(ValueShow), new PropertyMetadata("DarkSlateBlue"));
}
}