V1版本
This commit is contained in:
78
CapMachine.Shared/Controls/ValueShow.xaml.cs
Normal file
78
CapMachine.Shared/Controls/ValueShow.xaml.cs
Normal file
@@ -0,0 +1,78 @@
|
||||
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
|
||||
{
|
||||
/// <summary>
|
||||
/// ValueShow.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class ValueShow : UserControl
|
||||
{
|
||||
public ValueShow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Value 数据
|
||||
/// </summary>
|
||||
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));
|
||||
|
||||
/// <summary>
|
||||
/// 单位
|
||||
/// </summary>
|
||||
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(""));
|
||||
|
||||
/// <summary>
|
||||
/// 名称 标题
|
||||
/// </summary>
|
||||
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"));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user