Skip to content

Commit

Permalink
remove hardcoded names from XamlThickness
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlacey committed Feb 6, 2024
1 parent 98bc440 commit c11b418
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions NuGet/RapidXaml.WPF/XamlThickness.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ public double Vertical

public static readonly DependencyProperty BottomProperty = DependencyProperty.Register(nameof(Bottom), typeof(double), typeof(XamlThickness), new PropertyMetadata(0.0));

public static readonly DependencyProperty AllProperty = DependencyProperty.Register("All", typeof(double), typeof(XamlThickness), new PropertyMetadata(0.0, OnAllChanged));
public static readonly DependencyProperty AllProperty = DependencyProperty.Register(nameof(All), typeof(double), typeof(XamlThickness), new PropertyMetadata(0.0, OnAllChanged));

public static readonly DependencyProperty HorizontalProperty = DependencyProperty.Register("Horizontal", typeof(double), typeof(XamlThickness), new PropertyMetadata(0.0, OnHorizontalChanged));
public static readonly DependencyProperty HorizontalProperty = DependencyProperty.Register(nameof(Horizontal), typeof(double), typeof(XamlThickness), new PropertyMetadata(0.0, OnHorizontalChanged));

public static readonly DependencyProperty VerticalProperty = DependencyProperty.Register("Vertical", typeof(double), typeof(XamlThickness), new PropertyMetadata(0.0, OnVerticalChanged));
public static readonly DependencyProperty VerticalProperty = DependencyProperty.Register(nameof(Vertical), typeof(double), typeof(XamlThickness), new PropertyMetadata(0.0, OnVerticalChanged));

private static void OnAllChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
Expand Down
6 changes: 3 additions & 3 deletions NuGet/RapidXaml.WinUI/XamlThickness.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ public double Vertical

public static readonly DependencyProperty BottomProperty = DependencyProperty.Register(nameof(Bottom), typeof(double), typeof(XamlThickness), new PropertyMetadata(0.0));

public static readonly DependencyProperty AllProperty = DependencyProperty.Register("All", typeof(double), typeof(XamlThickness), new PropertyMetadata(0.0, OnAllChanged));
public static readonly DependencyProperty AllProperty = DependencyProperty.Register(nameof(All), typeof(double), typeof(XamlThickness), new PropertyMetadata(0.0, OnAllChanged));

public static readonly DependencyProperty HorizontalProperty = DependencyProperty.Register("Horizontal", typeof(double), typeof(XamlThickness), new PropertyMetadata(0.0, OnHorizontalChanged));
public static readonly DependencyProperty HorizontalProperty = DependencyProperty.Register(nameof(Horizontal), typeof(double), typeof(XamlThickness), new PropertyMetadata(0.0, OnHorizontalChanged));

public static readonly DependencyProperty VerticalProperty = DependencyProperty.Register("Vertical", typeof(double), typeof(XamlThickness), new PropertyMetadata(0.0, OnVerticalChanged));
public static readonly DependencyProperty VerticalProperty = DependencyProperty.Register(nameof(Vertical), typeof(double), typeof(XamlThickness), new PropertyMetadata(0.0, OnVerticalChanged));

private static void OnAllChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
Expand Down

0 comments on commit c11b418

Please sign in to comment.