Controls: Use nameof(Property) instead of string
All checks were successful
Test / Run tests (push) Successful in 1m43s
All checks were successful
Test / Run tests (push) Successful in 1m43s
This commit is contained in:
@ -6,13 +6,13 @@ using System.Windows.Data;
|
||||
namespace Elwig.Controls {
|
||||
public class UnitConverter : DependencyObject, IValueConverter {
|
||||
|
||||
public static readonly DependencyProperty UnitProperty = DependencyProperty.Register("Unit", typeof(string), typeof(UnitConverter), new FrameworkPropertyMetadata(null));
|
||||
public static readonly DependencyProperty UnitProperty = DependencyProperty.Register(nameof(Unit), typeof(string), typeof(UnitConverter), new FrameworkPropertyMetadata(null));
|
||||
public string Unit {
|
||||
get => (string)GetValue(UnitProperty);
|
||||
set => SetValue(UnitProperty, value);
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty PrecisionProperty = DependencyProperty.Register("Precision", typeof(byte), typeof(UnitConverter), new FrameworkPropertyMetadata((byte)0));
|
||||
public static readonly DependencyProperty PrecisionProperty = DependencyProperty.Register(nameof(Precision), typeof(byte), typeof(UnitConverter), new FrameworkPropertyMetadata((byte)0));
|
||||
public byte Precision {
|
||||
get => (byte)GetValue(PrecisionProperty);
|
||||
set => SetValue(PrecisionProperty, value);
|
||||
|
Reference in New Issue
Block a user