Skip to content

Commit

Permalink
Merge pull request #632 from CommunityToolkit/user/sergiopedri/dp-gen…
Browse files Browse the repository at this point in the history
…erator-fixes

Minor '[GeneratedDependencyProperty]' fixes
  • Loading branch information
Sergio0694 authored Jan 28, 2025
2 parents 0245b0e + e8f26b0 commit 5834450
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ public static void WriteAdditionalTypes(EquatableArray<DependencyPropertyInfo> p
if (propertyInfo.IsSharedPropertyChangedCallbackImplemented)
{
writer.IncreaseIndent();
writer.WriteLine($"PropertyChangedUnsafeAccessors.On{propertyInfo.PropertyName}PropertyChanged(__this, e);");
writer.WriteLine("PropertyChangedUnsafeAccessors.OnPropertyChanged(__this, e);");
writer.DecreaseIndent();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ private void OnNumberPropertyChanged(DependencyObject d, DependencyPropertyChang
global::MyNamespace.MyControl __this = (global::MyNamespace.MyControl)d;
PropertyChangedUnsafeAccessors.OnNumberPropertyChanged(__this, e);
PropertyChangedUnsafeAccessors.OnNumberPropertyChanged(__this, e);
PropertyChangedUnsafeAccessors.OnPropertyChanged(__this, e);
}
}
Expand Down Expand Up @@ -3272,7 +3272,7 @@ private void OnFirstNamePropertyChanged(DependencyObject d, DependencyPropertyCh
global::MyNamespace.MyControl __this = (global::MyNamespace.MyControl)d;
PropertyChangedUnsafeAccessors.OnFirstNamePropertyChanged(__this, e);
PropertyChangedUnsafeAccessors.OnFirstNamePropertyChanged(__this, e);
PropertyChangedUnsafeAccessors.OnPropertyChanged(__this, e);
}
/// <inheritdoc cref="cref="global::MyNamespace.MyControl.OnPropertyChanged""/>
Expand Down Expand Up @@ -3555,7 +3555,7 @@ private void OnFirstNamePropertyChanged(DependencyObject d, DependencyPropertyCh
global::MyNamespace.MyControl __this = (global::MyNamespace.MyControl)d;
PropertyChangedUnsafeAccessors.OnFirstNamePropertyChanged(__this, e);
PropertyChangedUnsafeAccessors.OnFirstNamePropertyChanged(__this, e);
PropertyChangedUnsafeAccessors.OnPropertyChanged(__this, e);
}
/// <inheritdoc cref="cref="global::MyNamespace.MyControl.OnPropertyChanged""/>
Expand All @@ -3564,7 +3564,7 @@ private void OnLastNamePropertyChanged(DependencyObject d, DependencyPropertyCha
global::MyNamespace.MyControl __this = (global::MyNamespace.MyControl)d;
PropertyChangedUnsafeAccessors.OnLastNamePropertyChanged(__this, e);
PropertyChangedUnsafeAccessors.OnLastNamePropertyChanged(__this, e);
PropertyChangedUnsafeAccessors.OnPropertyChanged(__this, e);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed class GeneratedDependencyProperty
{
/// <summary><inheritdoc cref="DependencyProperty.UnsetValue"/></summary>
/// <remarks>
/// This constant is only meant to be used in assignments to <see cref="DefaultValue"/> (because <see cref="DependencyProperty.UnsetValue"/>
/// This constant is only meant to be used in assignments to <see cref="GeneratedDependencyPropertyAttribute.DefaultValue"/> (because <see cref="DependencyProperty.UnsetValue"/>
/// cannot be used in that context, as it is not a constant, but rather a static field). Using this constant in other scenarios is undefined behavior.
/// </remarks>
public const object UnsetValue = null!;
Expand Down

0 comments on commit 5834450

Please sign in to comment.