Skip to content

Commit ba27efb

Browse files
kubafloPureWeen
authored andcommitted
System.MissingMethodException in PropertyPropagationExtensions fix (#28456)
* Update PropertyPropagationExtensions.cs * Update PropertyPropagationExtensions.cs * Update PropertyPropagationExtensions.cs
1 parent 9077706 commit ba27efb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Controls/src/Core/Internals/PropertyPropagationExtensions.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#nullable disable
2+
using System;
23
using System.Collections;
34
using System.Collections.Generic;
45
using System.Linq;
@@ -8,6 +9,15 @@ namespace Microsoft.Maui.Controls.Internals
89
/// <include file="../../../docs/Microsoft.Maui.Controls.Internals/PropertyPropagationExtensions.xml" path="Type[@FullName='Microsoft.Maui.Controls.Internals.PropertyPropagationExtensions']/Docs/*" />
910
public static class PropertyPropagationExtensions
1011
{
12+
[Obsolete]
13+
internal static void PropagatePropertyChanged(string propertyName, Element element, IEnumerable children)
14+
{
15+
if (children == null)
16+
return;
17+
18+
PropagatePropertyChanged(propertyName, element, children.OfType<IVisualTreeElement>().ToList());
19+
}
20+
1121
internal static void PropagatePropertyChanged(string propertyName, Element element, IReadOnlyList<IVisualTreeElement> children)
1222
{
1323
if (propertyName == null || propertyName == VisualElement.FlowDirectionProperty.PropertyName)

0 commit comments

Comments
 (0)