Skip to content

Commit aa39ee5

Browse files
Merge pull request #4791 from CommunityToolkit/revert-4333-feature/extended-tree-helpers
Revert "Feature/extended tree helpers"
2 parents b2b1c23 + 7a37ad1 commit aa39ee5

File tree

7 files changed

+47
-1016
lines changed

7 files changed

+47
-1016
lines changed

Microsoft.Toolkit.Uwp.UI/Enums/SearchType.cs

Lines changed: 0 additions & 24 deletions
This file was deleted.

Microsoft.Toolkit.Uwp.UI/Extensions/DependencyObjectExtensions.cs

Lines changed: 33 additions & 541 deletions
Large diffs are not rendered by default.

Microsoft.Toolkit.Uwp.UI/Extensions/FrameworkElement/FrameworkElementExtensions.LogicalTree.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static partial class FrameworkElementExtensions
6363
/// </summary>
6464
/// <typeparam name="T">The type of elements to match.</typeparam>
6565
/// <param name="element">The root element.</param>
66-
/// <param name="predicate">The predicate to use to match the child nodes.</param>
66+
/// <param name="predicate">The predicatee to use to match the child nodes.</param>
6767
/// <returns>The child that was found, or <see langword="null"/>.</returns>
6868
public static T? FindChild<T>(this FrameworkElement element, Func<T, bool> predicate)
6969
where T : notnull, FrameworkElement
@@ -80,7 +80,7 @@ public static partial class FrameworkElementExtensions
8080
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
8181
/// <param name="element">The root element.</param>
8282
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
83-
/// <param name="predicate">The predicate to use to match the child nodes.</param>
83+
/// <param name="predicate">The predicatee to use to match the child nodes.</param>
8484
/// <returns>The child that was found, or <see langword="null"/>.</returns>
8585
public static T? FindChild<T, TState>(this FrameworkElement element, TState state, Func<T, TState, bool> predicate)
8686
where T : notnull, FrameworkElement
@@ -96,7 +96,7 @@ public static partial class FrameworkElementExtensions
9696
/// <typeparam name="T">The type of elements to match.</typeparam>
9797
/// <typeparam name="TPredicate">The type of predicate in use.</typeparam>
9898
/// <param name="element">The root element.</param>
99-
/// <param name="predicate">The predicate to use to match the child nodes.</param>
99+
/// <param name="predicate">The predicatee to use to match the child nodes.</param>
100100
/// <returns>The child that was found, or <see langword="null"/>.</returns>
101101
private static T? FindChild<T, TPredicate>(this FrameworkElement element, ref TPredicate predicate)
102102
where T : notnull, FrameworkElement
@@ -296,7 +296,7 @@ public static partial class FrameworkElementExtensions
296296
/// </summary>
297297
/// <typeparam name="T">The type of elements to match.</typeparam>
298298
/// <param name="element">The root element.</param>
299-
/// <param name="predicate">The predicate to use to match the child nodes.</param>
299+
/// <param name="predicate">The predicatee to use to match the child nodes.</param>
300300
/// <returns>The child (or self) that was found, or <see langword="null"/>.</returns>
301301
public static T? FindChildOrSelf<T>(this FrameworkElement element, Func<T, bool> predicate)
302302
where T : notnull, FrameworkElement
@@ -316,7 +316,7 @@ public static partial class FrameworkElementExtensions
316316
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
317317
/// <param name="element">The root element.</param>
318318
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
319-
/// <param name="predicate">The predicate to use to match the child nodes.</param>
319+
/// <param name="predicate">The predicatee to use to match the child nodes.</param>
320320
/// <returns>The child (or self) that was found, or <see langword="null"/>.</returns>
321321
public static T? FindChildOrSelf<T, TState>(this FrameworkElement element, TState state, Func<T, TState, bool> predicate)
322322
where T : notnull, FrameworkElement
@@ -490,7 +490,7 @@ public static IEnumerable<FrameworkElement> FindChildren(this FrameworkElement e
490490
/// </summary>
491491
/// <typeparam name="T">The type of elements to match.</typeparam>
492492
/// <param name="element">The starting element.</param>
493-
/// <param name="predicate">The predicate to use to match the parent nodes.</param>
493+
/// <param name="predicate">The predicatee to use to match the parent nodes.</param>
494494
/// <returns>The parent that was found, or <see langword="null"/>.</returns>
495495
public static T? FindParent<T>(this FrameworkElement element, Func<T, bool> predicate)
496496
where T : notnull, FrameworkElement
@@ -507,7 +507,7 @@ public static IEnumerable<FrameworkElement> FindChildren(this FrameworkElement e
507507
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
508508
/// <param name="element">The starting element.</param>
509509
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
510-
/// <param name="predicate">The predicate to use to match the parent nodes.</param>
510+
/// <param name="predicate">The predicatee to use to match the parent nodes.</param>
511511
/// <returns>The parent that was found, or <see langword="null"/>.</returns>
512512
public static T? FindParent<T, TState>(this FrameworkElement element, TState state, Func<T, TState, bool> predicate)
513513
where T : notnull, FrameworkElement
@@ -523,7 +523,7 @@ public static IEnumerable<FrameworkElement> FindChildren(this FrameworkElement e
523523
/// <typeparam name="T">The type of elements to match.</typeparam>
524524
/// <typeparam name="TPredicate">The type of predicate in use.</typeparam>
525525
/// <param name="element">The starting element.</param>
526-
/// <param name="predicate">The predicate to use to match the parent nodes.</param>
526+
/// <param name="predicate">The predicatee to use to match the parent nodes.</param>
527527
/// <returns>The parent that was found, or <see langword="null"/>.</returns>
528528
private static T? FindParent<T, TPredicate>(this FrameworkElement element, ref TPredicate predicate)
529529
where T : notnull, FrameworkElement
@@ -600,7 +600,7 @@ public static IEnumerable<FrameworkElement> FindChildren(this FrameworkElement e
600600
/// </summary>
601601
/// <typeparam name="T">The type of elements to match.</typeparam>
602602
/// <param name="element">The starting element.</param>
603-
/// <param name="predicate">The predicate to use to match the parent nodes.</param>
603+
/// <param name="predicate">The predicatee to use to match the parent nodes.</param>
604604
/// <returns>The parent (or self) that was found, or <see langword="null"/>.</returns>
605605
public static T? FindParentOrSelf<T>(this FrameworkElement element, Func<T, bool> predicate)
606606
where T : notnull, FrameworkElement
@@ -620,7 +620,7 @@ public static IEnumerable<FrameworkElement> FindChildren(this FrameworkElement e
620620
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
621621
/// <param name="element">The starting element.</param>
622622
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
623-
/// <param name="predicate">The predicate to use to match the parent nodes.</param>
623+
/// <param name="predicate">The predicatee to use to match the parent nodes.</param>
624624
/// <returns>The parent (or self) that was found, or <see langword="null"/>.</returns>
625625
public static T? FindParentOrSelf<T, TState>(this FrameworkElement element, TState state, Func<T, TState, bool> predicate)
626626
where T : notnull, FrameworkElement

Microsoft.Toolkit.Uwp.UI/Extensions/Predicates/PredicateByFunc{T,TState}.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ namespace Microsoft.Toolkit.Uwp.UI.Predicates
2121
private readonly TState state;
2222

2323
/// <summary>
24-
/// The predicate to use to match items.
24+
/// The predicatee to use to match items.
2525
/// </summary>
2626
private readonly Func<T, TState, bool> predicate;
2727

2828
/// <summary>
2929
/// Initializes a new instance of the <see cref="PredicateByFunc{T, TState}"/> struct.
3030
/// </summary>
3131
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
32-
/// <param name="predicate">The predicate to use to match items.</param>
32+
/// <param name="predicate">The predicatee to use to match items.</param>
3333
public PredicateByFunc(TState state, Func<T, TState, bool> predicate)
3434
{
3535
this.state = state;

Microsoft.Toolkit.Uwp.UI/Extensions/Predicates/PredicateByFunc{T}.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ namespace Microsoft.Toolkit.Uwp.UI.Predicates
1515
where T : class
1616
{
1717
/// <summary>
18-
/// The predicate to use to match items.
18+
/// The predicatee to use to match items.
1919
/// </summary>
2020
private readonly Func<T, bool> predicate;
2121

2222
/// <summary>
2323
/// Initializes a new instance of the <see cref="PredicateByFunc{T}"/> struct.
2424
/// </summary>
25-
/// <param name="predicate">The predicate to use to match items.</param>
25+
/// <param name="predicate">The predicatee to use to match items.</param>
2626
public PredicateByFunc(Func<T, bool> predicate)
2727
{
2828
this.predicate = predicate;

Microsoft.Toolkit.Uwp.UI/Helpers/Internals/ArrayPoolBufferWriter{T}.cs

Lines changed: 0 additions & 129 deletions
This file was deleted.

0 commit comments

Comments
 (0)