chore: More cleanup
This commit is contained in:
Родитель
80a301297b
Коммит
c6b8c8c7c3
|
@ -1936,8 +1936,8 @@ namespace Microsoft.UI.Xaml
|
|||
if (propertyMetadata.HasPropertyChanged)
|
||||
{
|
||||
eventArgs ??= new DependencyPropertyChangedEventArgs(property, previousValue, newValue
|
||||
#if __IOS__ || __MACOS__ || IS_UNIT_TESTS
|
||||
, previousPrecedence, newPrecedence
|
||||
#if IS_UNIT_TESTS
|
||||
, newPrecedence
|
||||
#endif
|
||||
);
|
||||
propertyMetadata.RaisePropertyChangedNoNullCheck(actualInstanceAlias, eventArgs);
|
||||
|
@ -1952,8 +1952,8 @@ namespace Microsoft.UI.Xaml
|
|||
if (actualInstanceAlias is IDependencyObjectInternal doInternal)
|
||||
{
|
||||
eventArgs ??= new DependencyPropertyChangedEventArgs(property, previousValue, newValue
|
||||
#if __IOS__ || __MACOS__ || IS_UNIT_TESTS
|
||||
, previousPrecedence, newPrecedence
|
||||
#if IS_UNIT_TESTS
|
||||
, newPrecedence
|
||||
#endif
|
||||
);
|
||||
doInternal.OnPropertyChanged2(eventArgs);
|
||||
|
@ -1963,8 +1963,8 @@ namespace Microsoft.UI.Xaml
|
|||
if (propertyDetails.CanRaisePropertyChanged)
|
||||
{
|
||||
eventArgs ??= new DependencyPropertyChangedEventArgs(property, previousValue, newValue
|
||||
#if __IOS__ || __MACOS__ || IS_UNIT_TESTS
|
||||
, previousPrecedence, newPrecedence
|
||||
#if IS_UNIT_TESTS
|
||||
, newPrecedence
|
||||
#endif
|
||||
);
|
||||
propertyDetails.RaisePropertyChangedNoNullCheck(actualInstanceAlias, eventArgs);
|
||||
|
@ -1976,8 +1976,8 @@ namespace Microsoft.UI.Xaml
|
|||
{
|
||||
var callback = currentCallbacks[callbackIndex];
|
||||
eventArgs ??= new DependencyPropertyChangedEventArgs(property, previousValue, newValue
|
||||
#if __IOS__ || __MACOS__ || IS_UNIT_TESTS
|
||||
, previousPrecedence, newPrecedence
|
||||
#if IS_UNIT_TESTS
|
||||
, newPrecedence
|
||||
#endif
|
||||
);
|
||||
callback.Invoke(instanceRef, property, eventArgs);
|
||||
|
|
|
@ -28,17 +28,15 @@ namespace Microsoft.UI.Xaml
|
|||
DependencyProperty property,
|
||||
object oldValue,
|
||||
object newValue
|
||||
#if __IOS__ || __MACOS__ || IS_UNIT_TESTS
|
||||
, DependencyPropertyValuePrecedences oldPrecedence,
|
||||
DependencyPropertyValuePrecedences newPrecedence
|
||||
#if IS_UNIT_TESTS
|
||||
, DependencyPropertyValuePrecedences newPrecedence
|
||||
#endif
|
||||
)
|
||||
{
|
||||
Property = property;
|
||||
OldValue = oldValue;
|
||||
NewValue = newValue;
|
||||
#if __IOS__ || __MACOS__ || IS_UNIT_TESTS
|
||||
OldPrecedence = oldPrecedence;
|
||||
#if IS_UNIT_TESTS
|
||||
NewPrecedence = newPrecedence;
|
||||
#endif
|
||||
}
|
||||
|
@ -55,7 +53,7 @@ namespace Microsoft.UI.Xaml
|
|||
|
||||
public DependencyProperty Property { get; }
|
||||
|
||||
#if __IOS__ || __MACOS__ || IS_UNIT_TESTS
|
||||
#if IS_UNIT_TESTS
|
||||
/// <summary>
|
||||
/// Gets the dependency property value precedence of the new value
|
||||
/// </summary>
|
||||
|
@ -64,15 +62,6 @@ namespace Microsoft.UI.Xaml
|
|||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the dependency property value precedence of the old value
|
||||
/// </summary>
|
||||
internal DependencyPropertyValuePrecedences OldPrecedence
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче