[create-pull-request] automated change (#18892)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Родитель
66ac34c16e
Коммит
955e0a3b19
|
@ -125,9 +125,9 @@ namespace Microsoft.Maui.Controls
|
|||
return;
|
||||
|
||||
var original = bpcontext.Values.GetSpecificityAndValue();
|
||||
if (original.Key == SetterSpecificity.FromHandler)
|
||||
if (original.Key == SetterSpecificity.FromHandler)
|
||||
bpcontext.Values.Remove(SetterSpecificity.FromHandler);
|
||||
|
||||
|
||||
|
||||
var newValue = bpcontext.Values.GetClearedValue(specificity);
|
||||
var changed = !Equals(original.Value, newValue);
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace Microsoft.Maui.Controls.Platform
|
|||
_viewHandler = viewHandler;
|
||||
}
|
||||
|
||||
public void Disconnect ()
|
||||
public void Disconnect()
|
||||
{
|
||||
_viewHandler = null;
|
||||
}
|
||||
|
|
|
@ -98,7 +98,7 @@ namespace Microsoft.Maui.Controls
|
|||
if (_values is not null)
|
||||
{
|
||||
var index = _values.IndexOfKey(clearedSpecificity);
|
||||
if (index == _values.Count -1) //last value will be cleared
|
||||
if (index == _values.Count - 1) //last value will be cleared
|
||||
return _values.Count >= 2 ? _values[_values.Keys[_values.Count - 2]] : null;
|
||||
return _values.Last().Value;
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ namespace Microsoft.Maui.Controls
|
|||
{
|
||||
if (_first.Value.Key == clearedSpecificity)
|
||||
return _second.Value.Value;
|
||||
return _first.Value.Value;
|
||||
return _first.Value.Value;
|
||||
}
|
||||
else if (_first is not null)
|
||||
{
|
||||
|
|
|
@ -69,4 +69,3 @@ namespace Microsoft.Maui.Controls.Core.UnitTests
|
|||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -6,9 +6,9 @@ using Microsoft.Maui.ApplicationModel;
|
|||
using Microsoft.Maui.Controls.Core.UnitTests;
|
||||
using Microsoft.Maui.Controls.Shapes;
|
||||
using Microsoft.Maui.Devices;
|
||||
using Microsoft.Maui.Dispatching;
|
||||
using Microsoft.Maui.Graphics;
|
||||
using Microsoft.Maui.UnitTests;
|
||||
using Microsoft.Maui.Dispatching;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Microsoft.Maui.Controls.Xaml.UnitTests;
|
||||
|
|
Загрузка…
Ссылка в новой задаче