Skip to content

Commit 8cfdabf

Browse files
[create-pull-request] automated change
1 parent e49e46a commit 8cfdabf

File tree

69 files changed

+282
-258
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+282
-258
lines changed

src/Compatibility/Core/src/Windows/CollectionView/ItemsViewRenderer.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,8 @@ bool IsElementVisibleInContainer(FrameworkElement element, FrameworkElement cont
597597

598598
default:
599599
return elementBounds.Left < containerBounds.Right && elementBounds.Right > containerBounds.Left;
600-
};
600+
}
601+
;
601602
}
602603

603604
void OnScrollViewChanged(object sender, ScrollViewerViewChangedEventArgs e)

src/Compatibility/Core/src/iOS/Renderers/NavigationRenderer.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1642,7 +1642,8 @@ public override CGRect Frame
16421642
value.Width = (value.X - xSpace) + value.Width;
16431643
value.X = xSpace;
16441644
}
1645-
};
1645+
}
1646+
;
16461647

16471648
value.Height = ToolbarHeight;
16481649
}

src/Controls/src/BindingSourceGen/PathParser.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ private Result<List<IPathPart>> HandleBinaryExpression(BinaryExpressionSyntax as
142142
if (typeInfo == null)
143143
{
144144
return Result<List<IPathPart>>.Failure(DiagnosticsFactory.UnableToResolvePath(castTo.GetLocation()));
145-
};
145+
}
146+
;
146147

147148
leftResult.Value.Add(new Cast(typeInfo.CreateTypeDescription(_enabledNullable)));
148149

@@ -161,7 +162,8 @@ private Result<List<IPathPart>> HandleCastExpression(CastExpressionSyntax castEx
161162
if (typeInfo == null)
162163
{
163164
return Result<List<IPathPart>>.Failure(DiagnosticsFactory.UnableToResolvePath(castExpression.GetLocation()));
164-
};
165+
}
166+
;
165167

166168
result.Value.Add(new Cast(typeInfo.CreateTypeDescription(_enabledNullable)));
167169

src/Controls/src/Core/AppThemeBinding.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ void Set()
114114
}
115115
target.SetValueCore(_targetProperty, value, Internals.SetValueFlags.ClearDynamicResource, BindableObject.SetValuePrivateFlags.Default | BindableObject.SetValuePrivateFlags.Converted, specificity);
116116
}
117-
};
117+
}
118+
;
118119
}
119120

120121
object _light;

src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1996,7 +1996,8 @@ public override CGRect Frame
19961996
value.Width = (value.X - xSpace) + value.Width;
19971997
value.X = xSpace;
19981998
}
1999-
};
1999+
}
2000+
;
20002001

20012002
value.Height = ToolbarHeight;
20022003
}

src/Controls/src/Core/Compatibility/Handlers/Shell/Android/ShellItemRendererBase.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@ void RemoveAllButCurrent(Fragment skip)
393393

394394
trans ??= ChildFragmentManager.BeginTransactionEx();
395395
trans.Remove(f);
396-
};
396+
}
397+
;
397398

398399
trans?.CommitAllowingStateLossEx();
399400
}

src/Controls/src/Core/Handlers/Items/ItemsViewHandler.Windows.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,8 @@ bool IsElementVisibleInContainer(FrameworkElement element, FrameworkElement cont
582582

583583
default:
584584
return elementBounds.Left < containerBounds.Right && elementBounds.Right > containerBounds.Left;
585-
};
585+
}
586+
;
586587
}
587588

588589
async void ScrollToRequested(object sender, ScrollToRequestEventArgs args)

src/Controls/src/Core/Handlers/Items/iOS/SelectableItemsViewController.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
using System.Collections.Generic;
44
using System.Linq;
55
using Foundation;
6+
using Microsoft.Maui.Controls.Platform;
67
using ObjCRuntime;
78
using UIKit;
8-
using Microsoft.Maui.Controls.Platform;
99

1010
namespace Microsoft.Maui.Controls.Handlers.Items
1111
{

src/Controls/src/Core/Handlers/Items/iOS/TemplatedCell.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
using CoreGraphics;
55
using Foundation;
66
using Microsoft.Maui.Controls.Internals;
7+
using Microsoft.Maui.Controls.Platform;
78
using Microsoft.Maui.Graphics;
89
using UIKit;
9-
using Microsoft.Maui.Controls.Platform;
1010

1111
namespace Microsoft.Maui.Controls.Handlers.Items
1212
{
@@ -203,7 +203,7 @@ public void Bind(DataTemplate template, object bindingContext, ItemsView itemsVi
203203
}
204204

205205
CurrentTemplate = itemTemplate;
206-
this.UpdateAccessibilityTraits(itemsView);
206+
this.UpdateAccessibilityTraits(itemsView);
207207
MarkAsBound();
208208
}
209209

src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ static NSCollectionLayoutBoundarySupplementaryItem[] CreateSupplementaryItems(La
6262
scrollDirection == UICollectionViewScrollDirection.Vertical
6363
? NSRectAlignment.Top
6464
: NSRectAlignment.Leading));
65-
};
65+
}
66+
;
6667

6768
if (layoutHeaderFooterInfo.HasFooter)
6869
{

src/Controls/src/Core/Handlers/Items2/iOS/SelectableItemsViewController2.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
using System.Collections.Generic;
44
using System.Linq;
55
using Foundation;
6+
using Microsoft.Maui.Controls.Platform;
67
using ObjCRuntime;
78
using UIKit;
8-
using Microsoft.Maui.Controls.Platform;
99

1010
namespace Microsoft.Maui.Controls.Handlers.Items2
1111
{

src/Controls/src/Core/Handlers/Items2/iOS/StructuredItemsViewController2.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ void InvalidateLayoutIfItemsMeasureChanged()
195195
// We could then invalidate the layout for supplementary cell only `collectionView.IndexPathForCell(headerCell)` like we do on standard cells,
196196
// but that causes other cells to oddly collapse (see Issue25362 UITest), so in this case we have to stick with `InvalidateLayout`.
197197
var collectionView = CollectionView;
198-
198+
199199
if (ItemsView.Header is not null || ItemsView.HeaderTemplate is not null)
200200
{
201201
var visibleHeaders = collectionView.GetVisibleSupplementaryViews(UICollectionElementKindSectionKey.Header);

src/Controls/src/Core/Handlers/Items2/iOS/TemplatedCell2.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ public override void PrepareForReuse()
134134

135135
public void Bind(DataTemplate template, object bindingContext, ItemsView itemsView)
136136
{
137-
var virtualView = PlatformHandler?.VirtualView as View ??
138-
template.CreateContent(bindingContext, itemsView) as View;
137+
var virtualView = PlatformHandler?.VirtualView as View ??
138+
template.CreateContent(bindingContext, itemsView) as View;
139139

140140
BindVirtualView(virtualView, bindingContext, itemsView, false);
141141
}

src/Controls/src/Core/Shell/ShellSection.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,8 @@ void WaitForRendererToGetRemoved(object s, EventArgs p)
694694
{
695695
sc.Page.PlatformEnabledChanged -= WaitForRendererToGetRemoved;
696696
base.OnChildRemoved(child, oldLogicalIndex);
697-
};
697+
}
698+
;
698699
}
699700
else
700701
{

src/Controls/tests/Core.UnitTests/BindingUnitTests.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,8 @@ void create()
12411241
proxies.Add(new WeakReference(listener));
12421242
}
12431243
Assert.NotEmpty(proxies); // Should be at least 1
1244-
};
1244+
}
1245+
;
12451246
create();
12461247

12471248
await Task.Yield();

src/Controls/tests/DeviceTests/Elements/Border/BorderTests.Windows.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ await AttachAndRun(border, (handler) =>
6161
await AssertColorAtPoint(border, expected, typeof(BorderHandler), cornerRadius, cornerRadius);
6262
}
6363

64-
[Fact]
65-
[Description("The IsVisible property of a Border should match with native IsVisible")]
64+
[Fact]
65+
[Description("The IsVisible property of a Border should match with native IsVisible")]
6666
public async Task VerifyBorderIsVisibleProperty()
6767
{
6868
var border = new Border();
@@ -73,9 +73,9 @@ public async Task VerifyBorderIsVisibleProperty()
7373
var nativeView = GetNativeBorder(handler);
7474
await InvokeOnMainThreadAsync(() =>
7575
{
76-
var isVisible = nativeView.Visibility == Microsoft.UI.Xaml.Visibility.Visible;
77-
Assert.Equal(expectedValue, isVisible);
78-
});
76+
var isVisible = nativeView.Visibility == Microsoft.UI.Xaml.Visibility.Visible;
77+
Assert.Equal(expectedValue, isVisible);
78+
});
7979
}
8080

8181
ContentPanel GetNativeBorder(BorderHandler borderHandler) =>

src/Controls/tests/DeviceTests/Elements/BoxView/BoxViewTests.Android.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Task<float> GetPlatformOpacity(ShapeViewHandler handler)
1919
return nativeView.Alpha;
2020
});
2121
}
22-
22+
2323
Task<bool> GetPlatformIsVisible(ShapeViewHandler boxViewViewHandler)
2424
{
2525
return InvokeOnMainThreadAsync(() =>

src/Controls/tests/DeviceTests/Elements/BoxView/BoxViewTests.Windows.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Task<float> GetPlatformOpacity(ShapeViewHandler handler)
1919
return (float)nativeView.Opacity;
2020
});
2121
}
22-
22+
2323
Task<bool> GetPlatformIsVisible(ShapeViewHandler boxViewHandler)
2424
{
2525
return InvokeOnMainThreadAsync(() =>

src/Controls/tests/DeviceTests/Elements/BoxView/BoxViewTests.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
using System.Diagnostics;
33
using System.Threading.Tasks;
44
using Microsoft.Maui.Controls;
5+
using Microsoft.Maui.Controls.Handlers;
56
using Microsoft.Maui.Graphics;
67
using Microsoft.Maui.Handlers;
78
using Microsoft.Maui.Hosting;
89
using Xunit;
9-
using Microsoft.Maui.Controls.Handlers;
1010

1111
namespace Microsoft.Maui.DeviceTests
1212
{
@@ -64,21 +64,21 @@ await InvokeOnMainThreadAsync(async () =>
6464
Assert.Equal(expectedValue, nativeOpacityValue);
6565
});
6666
}
67-
67+
6868
[Fact]
69-
[Description("The IsVisible property of a BoxView should match with native IsVisible")]
69+
[Description("The IsVisible property of a BoxView should match with native IsVisible")]
7070
public async Task VerifyBoxViewIsVisibleProperty()
7171
{
7272
var boxView = new BoxView();
7373
boxView.IsVisible = false;
7474
var expectedValue = boxView.IsVisible;
7575

7676
var handler = await CreateHandlerAsync<BoxViewHandler>(boxView);
77-
await InvokeOnMainThreadAsync( async () =>
77+
await InvokeOnMainThreadAsync(async () =>
7878
{
79-
var isVisible = await GetPlatformIsVisible(handler);
80-
Assert.Equal(expectedValue, isVisible);
81-
});
79+
var isVisible = await GetPlatformIsVisible(handler);
80+
Assert.Equal(expectedValue, isVisible);
81+
});
8282
}
8383
}
8484
}

src/Controls/tests/DeviceTests/Elements/BoxView/BoxViewTests.iOS.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
using System;
2+
using System.ComponentModel;
23
using System.Reflection;
34
using System.Threading.Tasks;
45
using Microsoft.Maui.Controls;
6+
using Microsoft.Maui.Controls.Handlers;
57
using Microsoft.Maui.Graphics;
68
using Microsoft.Maui.Graphics.Platform;
79
using Microsoft.Maui.Handlers;
810
using Microsoft.Maui.Platform;
911
using Xunit;
10-
using System.ComponentModel;
11-
using Microsoft.Maui.Controls.Handlers;
1212

1313
namespace Microsoft.Maui.DeviceTests
1414
{
@@ -25,7 +25,7 @@ Task<float> GetPlatformOpacity(ShapeViewHandler handler)
2525
return (float)nativeView.Alpha;
2626
});
2727
}
28-
28+
2929
Task<bool> GetPlatformIsVisible(ShapeViewHandler boxViewHandler)
3030
{
3131
return InvokeOnMainThreadAsync(() =>

src/Controls/tests/DeviceTests/Elements/Button/ButtonTests.Windows.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#nullable enable
2+
using System.ComponentModel;
23
using System.Threading.Tasks;
34
using Microsoft.Maui.Handlers;
45
using Microsoft.Maui.Platform;
56
using Microsoft.UI.Xaml;
67
using Microsoft.UI.Xaml.Controls;
7-
using System.ComponentModel;
88
using Xunit;
99

1010
namespace Microsoft.Maui.DeviceTests
@@ -57,6 +57,6 @@ await InvokeOnMainThreadAsync(async () =>
5757
Assert.Equal(expectedValue, nativeOpacityValue);
5858
});
5959
}
60-
60+
6161
}
6262
}

src/Controls/tests/DeviceTests/Elements/CheckBox/CheckBoxTests.Android.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Task<float> GetPlatformOpacity(CheckBoxHandler CheckBoxHandler)
2222
return nativeView.Alpha;
2323
});
2424
}
25-
25+
2626
Task<bool> GetPlatformIsVisible(CheckBoxHandler checkBoxHandler)
2727
{
2828
return InvokeOnMainThreadAsync(() =>

src/Controls/tests/DeviceTests/Elements/CheckBox/CheckBoxTests.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
using System;
2+
using System.ComponentModel;
23
using System.Threading.Tasks;
34
using Microsoft.Maui.Controls;
45
using Microsoft.Maui.Graphics;
56
using Microsoft.Maui.Handlers;
67
using Microsoft.Maui.Hosting;
78
using Xunit;
8-
using System.ComponentModel;
99

1010
namespace Microsoft.Maui.DeviceTests
1111
{
@@ -64,7 +64,7 @@ await InvokeOnMainThreadAsync(async () =>
6464
}
6565

6666
[Fact]
67-
[Description("The IsVisible property of a CheckBox should match with native IsVisible")]
67+
[Description("The IsVisible property of a CheckBox should match with native IsVisible")]
6868
public async Task VerifyCheckBoxIsVisibleProperty()
6969
{
7070
var checkBox = new CheckBox();
@@ -74,9 +74,9 @@ public async Task VerifyCheckBoxIsVisibleProperty()
7474
var handler = await CreateHandlerAsync<CheckBoxHandler>(checkBox);
7575
await InvokeOnMainThreadAsync(async () =>
7676
{
77-
var isVisible = await GetPlatformIsVisible(handler);
78-
Assert.Equal(expectedValue, isVisible);
79-
});
77+
var isVisible = await GetPlatformIsVisible(handler);
78+
Assert.Equal(expectedValue, isVisible);
79+
});
8080
}
8181
}
8282
}

src/Controls/tests/DeviceTests/Elements/Editor/EditorTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ await InvokeOnMainThreadAsync(async () =>
310310
}
311311

312312
[Fact]
313-
[Description("The IsVisible property of a Editor should match with native IsVisible")]
313+
[Description("The IsVisible property of a Editor should match with native IsVisible")]
314314
public async Task VerifyEditorIsVisibleProperty()
315315
{
316316
var editor = new Editor();

src/Controls/tests/DeviceTests/Elements/Editor/EditorTests.iOS.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Task<float> GetPlatformOpacity(EditorHandler editorHandler)
4848
return InvokeOnMainThreadAsync(() =>
4949
{
5050
var nativeView = GetPlatformControl(editorHandler);
51-
return (float)nativeView.Alpha;
51+
return (float)nativeView.Alpha;
5252
});
5353
}
5454

src/Controls/tests/DeviceTests/Elements/Entry/EntryTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ await InvokeOnMainThreadAsync(async () =>
223223
}
224224

225225
[Fact]
226-
[Description("The IsVisible property of a Entry should match with native IsVisible")]
226+
[Description("The IsVisible property of a Entry should match with native IsVisible")]
227227
public async Task VerifyEntryIsVisibleProperty()
228228
{
229229
var entry = new Entry();

src/Controls/tests/DeviceTests/Elements/Entry/EntryTests.iOS.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ static int GetPlatformSelectionLength(EntryHandler entryHandler)
4444

4545
return -1;
4646
}
47-
47+
4848
Task<float> GetPlatformOpacity(EntryHandler entryHandler)
4949
{
5050
return InvokeOnMainThreadAsync(() =>
5151
{
5252
var nativeView = GetPlatformControl(entryHandler);
53-
return (float)nativeView.Alpha;
53+
return (float)nativeView.Alpha;
5454
});
5555
}
5656

src/Controls/tests/DeviceTests/Elements/Image/ImageTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ public async Task ImageBackgroundColorConsistent()
6262
};
6363

6464
await ValidateHasColor(image, expected, typeof(ImageHandler));
65-
}
65+
}
6666
}
6767
}

0 commit comments

Comments
 (0)