diff --git a/src/Compatibility/Core/src/Windows/CollectionView/ItemsViewRenderer.cs b/src/Compatibility/Core/src/Windows/CollectionView/ItemsViewRenderer.cs index 8f97fd85928c..0f8efd563452 100644 --- a/src/Compatibility/Core/src/Windows/CollectionView/ItemsViewRenderer.cs +++ b/src/Compatibility/Core/src/Windows/CollectionView/ItemsViewRenderer.cs @@ -597,7 +597,8 @@ bool IsElementVisibleInContainer(FrameworkElement element, FrameworkElement cont default: return elementBounds.Left < containerBounds.Right && elementBounds.Right > containerBounds.Left; - }; + } + ; } void OnScrollViewChanged(object sender, ScrollViewerViewChangedEventArgs e) diff --git a/src/Compatibility/Core/src/iOS/Renderers/NavigationRenderer.cs b/src/Compatibility/Core/src/iOS/Renderers/NavigationRenderer.cs index 7eb2f18ec791..6b85dadcdd82 100644 --- a/src/Compatibility/Core/src/iOS/Renderers/NavigationRenderer.cs +++ b/src/Compatibility/Core/src/iOS/Renderers/NavigationRenderer.cs @@ -1642,7 +1642,8 @@ public override CGRect Frame value.Width = (value.X - xSpace) + value.Width; value.X = xSpace; } - }; + } + ; value.Height = ToolbarHeight; } diff --git a/src/Controls/src/BindingSourceGen/PathParser.cs b/src/Controls/src/BindingSourceGen/PathParser.cs index 99bf47af109c..e3b50bbf3f5a 100644 --- a/src/Controls/src/BindingSourceGen/PathParser.cs +++ b/src/Controls/src/BindingSourceGen/PathParser.cs @@ -142,7 +142,8 @@ private Result> HandleBinaryExpression(BinaryExpressionSyntax as if (typeInfo == null) { return Result>.Failure(DiagnosticsFactory.UnableToResolvePath(castTo.GetLocation())); - }; + } + ; leftResult.Value.Add(new Cast(typeInfo.CreateTypeDescription(_enabledNullable))); @@ -161,7 +162,8 @@ private Result> HandleCastExpression(CastExpressionSyntax castEx if (typeInfo == null) { return Result>.Failure(DiagnosticsFactory.UnableToResolvePath(castExpression.GetLocation())); - }; + } + ; result.Value.Add(new Cast(typeInfo.CreateTypeDescription(_enabledNullable))); diff --git a/src/Controls/src/Core/AppThemeBinding.cs b/src/Controls/src/Core/AppThemeBinding.cs index 9aaff6c80a90..3685ad9398c8 100644 --- a/src/Controls/src/Core/AppThemeBinding.cs +++ b/src/Controls/src/Core/AppThemeBinding.cs @@ -114,7 +114,8 @@ void Set() } target.SetValueCore(_targetProperty, value, Internals.SetValueFlags.ClearDynamicResource, BindableObject.SetValuePrivateFlags.Default | BindableObject.SetValuePrivateFlags.Converted, specificity); } - }; + } + ; } object _light; diff --git a/src/Controls/src/Core/BindableLayout/BindableLayout.cs b/src/Controls/src/Core/BindableLayout/BindableLayout.cs index 4b48faabc0b8..b5c47d9c2642 100644 --- a/src/Controls/src/Core/BindableLayout/BindableLayout.cs +++ b/src/Controls/src/Core/BindableLayout/BindableLayout.cs @@ -576,7 +576,7 @@ static View CreateItemView(object item, DataTemplate dataTemplate) return view; } - + static void ClearBindingContext(IView child) { if (child is BindableObject bindable && bindable.IsSet(BindableLayoutTemplateProperty)) diff --git a/src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs b/src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs index bd2e54e64115..54366c0e1c15 100644 --- a/src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs +++ b/src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs @@ -1996,7 +1996,8 @@ public override CGRect Frame value.Width = (value.X - xSpace) + value.Width; value.X = xSpace; } - }; + } + ; value.Height = ToolbarHeight; } diff --git a/src/Controls/src/Core/Compatibility/Handlers/Shell/Android/ShellItemRendererBase.cs b/src/Controls/src/Core/Compatibility/Handlers/Shell/Android/ShellItemRendererBase.cs index fac13a0b7936..74fd42f817ab 100644 --- a/src/Controls/src/Core/Compatibility/Handlers/Shell/Android/ShellItemRendererBase.cs +++ b/src/Controls/src/Core/Compatibility/Handlers/Shell/Android/ShellItemRendererBase.cs @@ -407,7 +407,8 @@ void RemoveAllButCurrent(Fragment skip) trans ??= ChildFragmentManager.BeginTransactionEx(); trans.Remove(f); - }; + } + ; trans?.CommitAllowingStateLossEx(); } diff --git a/src/Controls/src/Core/Handlers/Items/ItemsViewHandler.Windows.cs b/src/Controls/src/Core/Handlers/Items/ItemsViewHandler.Windows.cs index 4098ac3b456b..86571a4c94c2 100644 --- a/src/Controls/src/Core/Handlers/Items/ItemsViewHandler.Windows.cs +++ b/src/Controls/src/Core/Handlers/Items/ItemsViewHandler.Windows.cs @@ -582,7 +582,8 @@ bool IsElementVisibleInContainer(FrameworkElement element, FrameworkElement cont default: return elementBounds.Left < containerBounds.Right && elementBounds.Right > containerBounds.Left; - }; + } + ; } async void ScrollToRequested(object sender, ScrollToRequestEventArgs args) diff --git a/src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs b/src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs index 3a499ce42fdb..8dbc33e96e1c 100644 --- a/src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs +++ b/src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs @@ -62,7 +62,8 @@ static NSCollectionLayoutBoundarySupplementaryItem[] CreateSupplementaryItems(La scrollDirection == UICollectionViewScrollDirection.Vertical ? NSRectAlignment.Top : NSRectAlignment.Leading)); - }; + } + ; if (layoutHeaderFooterInfo.HasFooter) { diff --git a/src/Controls/src/Core/Shell/ShellSection.cs b/src/Controls/src/Core/Shell/ShellSection.cs index e4548c48ce9a..f40587130d05 100644 --- a/src/Controls/src/Core/Shell/ShellSection.cs +++ b/src/Controls/src/Core/Shell/ShellSection.cs @@ -692,7 +692,8 @@ void WaitForRendererToGetRemoved(object s, EventArgs p) { sc.Page.PlatformEnabledChanged -= WaitForRendererToGetRemoved; base.OnChildRemoved(child, oldLogicalIndex); - }; + } + ; } else { diff --git a/src/Controls/tests/Core.UnitTests/BindableLayoutTests.cs b/src/Controls/tests/Core.UnitTests/BindableLayoutTests.cs index 689c98277acb..650b190333ea 100644 --- a/src/Controls/tests/Core.UnitTests/BindableLayoutTests.cs +++ b/src/Controls/tests/Core.UnitTests/BindableLayoutTests.cs @@ -665,15 +665,15 @@ public void DisconnectsHandlersWhenRemovingViews() .ConfigureMauiHandlers(handlers => handlers.AddHandler()) .ConfigureMauiHandlers(handlers => handlers.AddHandler()) .Build(); - + MauiContext mauiContext = new MauiContext(mauiApp.Services); - + var bindableLayout = new VerticalStackLayout(); var items = new ObservableCollection(Enumerable.Range(0, 10)); BindableLayout.SetItemsSource(bindableLayout, items); BindableLayout.SetItemTemplate(bindableLayout, new DataTemplate(() => new Button())); BindableLayout.SetEmptyView(bindableLayout, new Button()); - + bindableLayout.ToHandler(mauiContext); // Ensure we have the handlers on all elements diff --git a/src/Controls/tests/Core.UnitTests/BindingUnitTests.cs b/src/Controls/tests/Core.UnitTests/BindingUnitTests.cs index fd83f3611231..42eb82cacb8c 100644 --- a/src/Controls/tests/Core.UnitTests/BindingUnitTests.cs +++ b/src/Controls/tests/Core.UnitTests/BindingUnitTests.cs @@ -1241,7 +1241,8 @@ void create() proxies.Add(new WeakReference(listener)); } Assert.NotEmpty(proxies); // Should be at least 1 - }; + } + ; create(); await Task.Yield(); diff --git a/src/Controls/tests/DeviceTests/Elements/ScrollView/ScrollViewTests.iOS.cs b/src/Controls/tests/DeviceTests/Elements/ScrollView/ScrollViewTests.iOS.cs index 23cf3433070e..19c6879f35fd 100644 --- a/src/Controls/tests/DeviceTests/Elements/ScrollView/ScrollViewTests.iOS.cs +++ b/src/Controls/tests/DeviceTests/Elements/ScrollView/ScrollViewTests.iOS.cs @@ -50,7 +50,8 @@ public async Task ContentSizeExpandsToViewport() static CoreGraphics.CGSize getViewportSize(UIScrollView scrollView) { return scrollView.AdjustedContentInset.InsetRect(scrollView.Bounds).Size; - }; + } + ; var scrollViewHandler = await InvokeOnMainThreadAsync(() => { diff --git a/src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.cs b/src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.cs index 006ee516c2da..00ee51519393 100644 --- a/src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.cs +++ b/src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.cs @@ -296,7 +296,8 @@ public async Task MovingBetweenMultiplePagesWithNestedNavigationPages(bool botto { Title = title }; - }; + } + ; var tabbedPage = CreateBasicTabbedPage(bottomTabs, isSmoothScrollEnabled, pages); diff --git a/src/Controls/tests/TestCases.HostApp/Elements/CollectionView/PerformanceGalleries/ShadowBenchmark.xaml.cs b/src/Controls/tests/TestCases.HostApp/Elements/CollectionView/PerformanceGalleries/ShadowBenchmark.xaml.cs index 94cd945b5025..e0f4ce4ac832 100644 --- a/src/Controls/tests/TestCases.HostApp/Elements/CollectionView/PerformanceGalleries/ShadowBenchmark.xaml.cs +++ b/src/Controls/tests/TestCases.HostApp/Elements/CollectionView/PerformanceGalleries/ShadowBenchmark.xaml.cs @@ -56,7 +56,7 @@ static List GetData() From = "Lorem ipsum" }; - for(int i = 0; i < 1000; i++) + for (int i = 0; i < 1000; i++) { posts.Add(new Post { Title = $"Lorem ipsum {i + 1} dolor sit amet, consectetur adipiscing elit", Image = "photo21314.jpg", Likes = "1k", User = user }); } diff --git a/src/Controls/tests/TestCases.HostApp/Issues/XFIssue/ShellFlyoutHeaderBehavior.cs b/src/Controls/tests/TestCases.HostApp/Issues/XFIssue/ShellFlyoutHeaderBehavior.cs index e8c319d579e9..373026514882 100644 --- a/src/Controls/tests/TestCases.HostApp/Issues/XFIssue/ShellFlyoutHeaderBehavior.cs +++ b/src/Controls/tests/TestCases.HostApp/Issues/XFIssue/ShellFlyoutHeaderBehavior.cs @@ -63,6 +63,7 @@ ContentPage CreateContentPage() page.Content = layout; return page; - }; + } + ; } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue26598.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue26598.cs index 84c8f302164e..adf592486844 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue26598.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue26598.cs @@ -9,7 +9,7 @@ public class Issue26598 : _IssuesUITest public override string Issue => "Tabbar disappears when navigating back from page with hidden TabBar in iOS"; #if ANDROID - const string back = ""; + const string back = ""; #else const string back = "InnerTab"; #endif diff --git a/src/Controls/tests/TestCases.Shared.Tests/UITest.cs b/src/Controls/tests/TestCases.Shared.Tests/UITest.cs index df3ab2f33734..5d14497c0583 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/UITest.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/UITest.cs @@ -119,8 +119,8 @@ public override void Reset() /// /// public void VerifyScreenshotOrSetException( - ref Exception? exception, - string? name = null, + ref Exception? exception, + string? name = null, TimeSpan? retryDelay = null #if MACUITEST || WINTEST , bool includeTitleBar = false diff --git a/src/Controls/tests/Xaml.UnitTests/Issues/Maui6367.xaml.cs b/src/Controls/tests/Xaml.UnitTests/Issues/Maui6367.xaml.cs index 67c4209f346c..d93eea23b994 100644 --- a/src/Controls/tests/Xaml.UnitTests/Issues/Maui6367.xaml.cs +++ b/src/Controls/tests/Xaml.UnitTests/Issues/Maui6367.xaml.cs @@ -22,7 +22,7 @@ class Test [Test] public void NestedTriggers([Values(false, true)] bool useCompiledXaml) { - Maui6367 view = new Maui6367(useCompiledXaml); + Maui6367 view = new Maui6367(useCompiledXaml); } } } diff --git a/src/Controls/tests/Xaml.UnitTests/MSBuild/MSBuildTests.cs b/src/Controls/tests/Xaml.UnitTests/MSBuild/MSBuildTests.cs index 71ff326a12da..23bea48b6a68 100644 --- a/src/Controls/tests/Xaml.UnitTests/MSBuild/MSBuildTests.cs +++ b/src/Controls/tests/Xaml.UnitTests/MSBuild/MSBuildTests.cs @@ -178,7 +178,8 @@ void onData(object s, DataReceivedEventArgs e) builder.AppendLine(e.Data); Console.WriteLine(e.Data); } - }; + } + ; var ext = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : ""; var dotnet = IOPath.Combine(testDirectory, "..", "..", "..", "..", "..", "..", "..", "bin", "dotnet", $"dotnet{ext}"); diff --git a/src/Core/src/Graphics/PaintExtensions.Android.cs b/src/Core/src/Graphics/PaintExtensions.Android.cs index 1df215b3d3b9..6cf92e450144 100644 --- a/src/Core/src/Graphics/PaintExtensions.Android.cs +++ b/src/Core/src/Graphics/PaintExtensions.Android.cs @@ -3,9 +3,9 @@ using Android.Content; using Android.Content.Res; using Android.Graphics.Drawables; +using AColor = Android.Graphics.Color; using AOrientation = Android.Graphics.Drawables.GradientDrawable.Orientation; using APaint = Android.Graphics.Paint; -using AColor = Android.Graphics.Color; namespace Microsoft.Maui.Graphics { diff --git a/src/Core/src/Handlers/Editor/EditorHandler.Tizen.cs b/src/Core/src/Handlers/Editor/EditorHandler.Tizen.cs index 9745844826ef..1584d3db863e 100644 --- a/src/Core/src/Handlers/Editor/EditorHandler.Tizen.cs +++ b/src/Core/src/Handlers/Editor/EditorHandler.Tizen.cs @@ -31,7 +31,8 @@ TSize IMeasurable.Measure(double availableWidth, double availableHeight) else { return new TSize(Math.Max(PixelSize + 10, availableWidth), PixelSize + 10); - }; + } + ; } } diff --git a/src/Core/src/Handlers/Entry/EntryHandler.Tizen.cs b/src/Core/src/Handlers/Entry/EntryHandler.Tizen.cs index 4643822f87dc..8d69a7d521a7 100644 --- a/src/Core/src/Handlers/Entry/EntryHandler.Tizen.cs +++ b/src/Core/src/Handlers/Entry/EntryHandler.Tizen.cs @@ -34,7 +34,8 @@ TSize IMeasurable.Measure(double availableWidth, double availableHeight) else { return new TSize(Math.Max(PixelSize + 10, availableWidth), PixelSize + 10); - }; + } + ; } } diff --git a/src/Core/src/Platform/Android/ViewExtensions.cs b/src/Core/src/Platform/Android/ViewExtensions.cs index 9f83e8e1c3ff..bbae2580152b 100644 --- a/src/Core/src/Platform/Android/ViewExtensions.cs +++ b/src/Core/src/Platform/Android/ViewExtensions.cs @@ -786,7 +786,8 @@ void ShowSoftInput() } view.ShowSoftInput(); - }; + } + ; view.Post(ShowSoftInput); } diff --git a/src/Core/src/Platform/Android/WrapperView.cs b/src/Core/src/Platform/Android/WrapperView.cs index 5bf60c86db62..17a911049883 100644 --- a/src/Core/src/Platform/Android/WrapperView.cs +++ b/src/Core/src/Platform/Android/WrapperView.cs @@ -71,7 +71,7 @@ partial void ShadowChanged() int[] colors; float[] positions; float[] bounds; - + switch (shadowPaint) { case LinearGradientPaint linearGradientPaint: diff --git a/src/Core/src/Platform/Windows/SliderExtensions.cs b/src/Core/src/Platform/Windows/SliderExtensions.cs index 246d11370c4b..5c0f0e29e0a6 100644 --- a/src/Core/src/Platform/Windows/SliderExtensions.cs +++ b/src/Core/src/Platform/Windows/SliderExtensions.cs @@ -145,7 +145,8 @@ void OnImageOpened(object sender, RoutedEventArgs e) if (nativeSlider.Parent is FrameworkElement frameworkElement) frameworkElement.InvalidateMeasure(); - }; + } + ; } nativeSlider.ThumbImageSource = nativeThumbImageSource?.Value; diff --git a/src/Core/src/Platform/iOS/ViewExtensions.cs b/src/Core/src/Platform/iOS/ViewExtensions.cs index b01dae974d54..69515bcb350f 100644 --- a/src/Core/src/Platform/iOS/ViewExtensions.cs +++ b/src/Core/src/Platform/iOS/ViewExtensions.cs @@ -680,7 +680,8 @@ void OnLoadedCheck(NSObservedChange? nSObservedChange = null) uiView.BeginInvokeOnMainThread(() => OnLoadedCheck(null)); } } - }; + } + ; return disposable; } @@ -740,7 +741,8 @@ void UnLoadedCheck() disposable = null; action(); } - }; + } + ; return disposable; }