20 lines
938 B
C#
20 lines
938 B
C#
|
|
using System.Windows;
|
||
|
|
using System.Windows.Controls;
|
||
|
|
|
||
|
|
namespace EngineeringSync.Setup.Views.Pages;
|
||
|
|
|
||
|
|
public partial class SummaryRow : UserControl
|
||
|
|
{
|
||
|
|
public static readonly DependencyProperty LabelProperty =
|
||
|
|
DependencyProperty.Register(nameof(Label), typeof(string), typeof(SummaryRow),
|
||
|
|
new PropertyMetadata(string.Empty, (d, e) => ((SummaryRow)d).LabelText.Text = (string)e.NewValue));
|
||
|
|
|
||
|
|
public static readonly DependencyProperty ValueProperty =
|
||
|
|
DependencyProperty.Register(nameof(Value), typeof(string), typeof(SummaryRow),
|
||
|
|
new PropertyMetadata(string.Empty, (d, e) => ((SummaryRow)d).ValueText.Text = (string)e.NewValue));
|
||
|
|
|
||
|
|
public string Label { get => (string)GetValue(LabelProperty); set => SetValue(LabelProperty, value); }
|
||
|
|
public string Value { get => (string)GetValue(ValueProperty); set => SetValue(ValueProperty, value); }
|
||
|
|
public SummaryRow() => InitializeComponent();
|
||
|
|
}
|