Skip to content

Commit 888ec93

Browse files
committed
Fix a few typos
1 parent 10186c5 commit 888ec93

File tree

4 files changed

+27
-27
lines changed

4 files changed

+27
-27
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public static class DependencyObjectExtensions
108108
/// </summary>
109109
/// <typeparam name="T">The type of elements to match.</typeparam>
110110
/// <param name="element">The root element.</param>
111-
/// <param name="predicate">The predicatee to use to match the descendant nodes.</param>
111+
/// <param name="predicate">The predicate to use to match the descendant nodes.</param>
112112
/// <returns>The descendant that was found, or <see langword="null"/>.</returns>
113113
public static T? FindDescendant<T>(this DependencyObject element, Func<T, bool> predicate)
114114
where T : notnull, DependencyObject
@@ -123,7 +123,7 @@ public static class DependencyObjectExtensions
123123
/// </summary>
124124
/// <typeparam name="T">The type of elements to match.</typeparam>
125125
/// <param name="element">The root element.</param>
126-
/// <param name="predicate">The predicatee to use to match the descendant nodes.</param>
126+
/// <param name="predicate">The predicate to use to match the descendant nodes.</param>
127127
/// <param name="searchType">The search type to use to explore the visual tree.</param>
128128
/// <returns>The descendant that was found, or <see langword="null"/>.</returns>
129129
public static T? FindDescendant<T>(this DependencyObject element, Func<T, bool> predicate, SearchType searchType)
@@ -141,7 +141,7 @@ public static class DependencyObjectExtensions
141141
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
142142
/// <param name="element">The root element.</param>
143143
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
144-
/// <param name="predicate">The predicatee to use to match the descendant nodes.</param>
144+
/// <param name="predicate">The predicate to use to match the descendant nodes.</param>
145145
/// <returns>The descendant that was found, or <see langword="null"/>.</returns>
146146
public static T? FindDescendant<T, TState>(this DependencyObject element, TState state, Func<T, TState, bool> predicate)
147147
where T : notnull, DependencyObject
@@ -158,7 +158,7 @@ public static class DependencyObjectExtensions
158158
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
159159
/// <param name="element">The root element.</param>
160160
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
161-
/// <param name="predicate">The predicatee to use to match the descendant nodes.</param>
161+
/// <param name="predicate">The predicate to use to match the descendant nodes.</param>
162162
/// <param name="searchType">The search type to use to explore the visual tree.</param>
163163
/// <returns>The descendant that was found, or <see langword="null"/>.</returns>
164164
public static T? FindDescendant<T, TState>(this DependencyObject element, TState state, Func<T, TState, bool> predicate, SearchType searchType)
@@ -374,7 +374,7 @@ public static class DependencyObjectExtensions
374374
/// </summary>
375375
/// <typeparam name="T">The type of elements to match.</typeparam>
376376
/// <param name="element">The root element.</param>
377-
/// <param name="predicate">The predicatee to use to match the descendant nodes.</param>
377+
/// <param name="predicate">The predicate to use to match the descendant nodes.</param>
378378
/// <returns>The descendant (or self) that was found, or <see langword="null"/>.</returns>
379379
public static T? FindDescendantOrSelf<T>(this DependencyObject element, Func<T, bool> predicate)
380380
where T : notnull, DependencyObject
@@ -392,7 +392,7 @@ public static class DependencyObjectExtensions
392392
/// </summary>
393393
/// <typeparam name="T">The type of elements to match.</typeparam>
394394
/// <param name="element">The root element.</param>
395-
/// <param name="predicate">The predicatee to use to match the descendant nodes.</param>
395+
/// <param name="predicate">The predicate to use to match the descendant nodes.</param>
396396
/// <param name="searchType">The search type to use to explore the visual tree.</param>
397397
/// <returns>The descendant (or self) that was found, or <see langword="null"/>.</returns>
398398
public static T? FindDescendantOrSelf<T>(this DependencyObject element, Func<T, bool> predicate, SearchType searchType)
@@ -413,7 +413,7 @@ public static class DependencyObjectExtensions
413413
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
414414
/// <param name="element">The root element.</param>
415415
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
416-
/// <param name="predicate">The predicatee to use to match the descendant nodes.</param>
416+
/// <param name="predicate">The predicate to use to match the descendant nodes.</param>
417417
/// <returns>The descendant (or self) that was found, or <see langword="null"/>.</returns>
418418
public static T? FindDescendantOrSelf<T, TState>(this DependencyObject element, TState state, Func<T, TState, bool> predicate)
419419
where T : notnull, DependencyObject
@@ -433,7 +433,7 @@ public static class DependencyObjectExtensions
433433
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
434434
/// <param name="element">The root element.</param>
435435
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
436-
/// <param name="predicate">The predicatee to use to match the descendant nodes.</param>
436+
/// <param name="predicate">The predicate to use to match the descendant nodes.</param>
437437
/// <param name="searchType">The search type to use to explore the visual tree.</param>
438438
/// <returns>The descendant (or self) that was found, or <see langword="null"/>.</returns>
439439
public static T? FindDescendantOrSelf<T, TState>(this DependencyObject element, TState state, Func<T, TState, bool> predicate, SearchType searchType)
@@ -727,7 +727,7 @@ static IEnumerable<DependencyObject> ThrowArgumentOutOfRangeExceptionForInvalidS
727727
/// </summary>
728728
/// <typeparam name="T">The type of elements to match.</typeparam>
729729
/// <param name="element">The starting element.</param>
730-
/// <param name="predicate">The predicatee to use to match the ascendant nodes.</param>
730+
/// <param name="predicate">The predicate to use to match the ascendant nodes.</param>
731731
/// <returns>The ascendant that was found, or <see langword="null"/>.</returns>
732732
public static T? FindAscendant<T>(this DependencyObject element, Func<T, bool> predicate)
733733
where T : notnull, DependencyObject
@@ -744,7 +744,7 @@ static IEnumerable<DependencyObject> ThrowArgumentOutOfRangeExceptionForInvalidS
744744
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
745745
/// <param name="element">The starting element.</param>
746746
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
747-
/// <param name="predicate">The predicatee to use to match the ascendant nodes.</param>
747+
/// <param name="predicate">The predicate to use to match the ascendant nodes.</param>
748748
/// <returns>The ascendant that was found, or <see langword="null"/>.</returns>
749749
public static T? FindAscendant<T, TState>(this DependencyObject element, TState state, Func<T, TState, bool> predicate)
750750
where T : notnull, DependencyObject
@@ -760,7 +760,7 @@ static IEnumerable<DependencyObject> ThrowArgumentOutOfRangeExceptionForInvalidS
760760
/// <typeparam name="T">The type of elements to match.</typeparam>
761761
/// <typeparam name="TPredicate">The type of predicate in use.</typeparam>
762762
/// <param name="element">The starting element.</param>
763-
/// <param name="predicate">The predicatee to use to match the ascendant nodes.</param>
763+
/// <param name="predicate">The predicate to use to match the ascendant nodes.</param>
764764
/// <returns>The ascendant that was found, or <see langword="null"/>.</returns>
765765
private static T? FindAscendant<T, TPredicate>(this DependencyObject element, ref TPredicate predicate)
766766
where T : notnull, DependencyObject
@@ -839,7 +839,7 @@ static IEnumerable<DependencyObject> ThrowArgumentOutOfRangeExceptionForInvalidS
839839
/// </summary>
840840
/// <typeparam name="T">The type of elements to match.</typeparam>
841841
/// <param name="element">The starting element.</param>
842-
/// <param name="predicate">The predicatee to use to match the ascendant nodes.</param>
842+
/// <param name="predicate">The predicate to use to match the ascendant nodes.</param>
843843
/// <returns>The ascendant (or self) that was found, or <see langword="null"/>.</returns>
844844
public static T? FindAscendantOrSelf<T>(this DependencyObject element, Func<T, bool> predicate)
845845
where T : notnull, DependencyObject
@@ -859,7 +859,7 @@ static IEnumerable<DependencyObject> ThrowArgumentOutOfRangeExceptionForInvalidS
859859
/// <typeparam name="TState">The type of state to use when matching nodes.</typeparam>
860860
/// <param name="element">The starting element.</param>
861861
/// <param name="state">The state to give as input to <paramref name="predicate"/>.</param>
862-
/// <param name="predicate">The predicatee to use to match the ascendant nodes.</param>
862+
/// <param name="predicate">The predicate to use to match the ascendant nodes.</param>
863863
/// <returns>The ascendant (or self) that was found, or <see langword="null"/>.</returns>
864864
public static T? FindAscendantOrSelf<T, TState>(this DependencyObject element, TState state, Func<T, TState, bool> predicate)
865865
where T : notnull, DependencyObject

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 predicatee to use to match the child nodes.</param>
66+
/// <param name="predicate">The predicate 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 predicatee to use to match the child nodes.</param>
83+
/// <param name="predicate">The predicate 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 predicatee to use to match the child nodes.</param>
99+
/// <param name="predicate">The predicate 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 predicatee to use to match the child nodes.</param>
299+
/// <param name="predicate">The predicate 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 predicatee to use to match the child nodes.</param>
319+
/// <param name="predicate">The predicate 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 predicatee to use to match the parent nodes.</param>
493+
/// <param name="predicate">The predicate 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 predicatee to use to match the parent nodes.</param>
510+
/// <param name="predicate">The predicate 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 predicatee to use to match the parent nodes.</param>
526+
/// <param name="predicate">The predicate 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 predicatee to use to match the parent nodes.</param>
603+
/// <param name="predicate">The predicate 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 predicatee to use to match the parent nodes.</param>
623+
/// <param name="predicate">The predicate 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 predicatee to use to match items.
24+
/// The predicate 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 predicatee to use to match items.</param>
32+
/// <param name="predicate">The predicate 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 predicatee to use to match items.
18+
/// The predicate 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 predicatee to use to match items.</param>
25+
/// <param name="predicate">The predicate to use to match items.</param>
2626
public PredicateByFunc(Func<T, bool> predicate)
2727
{
2828
this.predicate = predicate;

0 commit comments

Comments
 (0)