Skip to content

Commit 518e1bf

Browse files
[create-pull-request] automated change
1 parent 009b4f1 commit 518e1bf

File tree

54 files changed

+199
-176
lines changed

Some content is hidden

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

54 files changed

+199
-176
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

+1-1
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
{

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/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/BoxView/BoxViewTests.iOS.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Task<float> GetPlatformOpacity(ShapeViewHandler handler)
2020
return InvokeOnMainThreadAsync(() =>
2121
{
2222
var nativeView = GetNativeBoxView(handler);
23-
return (float)nativeView.Alpha;
23+
return (float)nativeView.Alpha;
2424
});
2525
}
2626

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

+1-1
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

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

+1-1
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
{

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.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
}

src/Controls/tests/DeviceTests/Elements/Label/LabelTests.iOS.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Task<float> GetPlatformOpacity(LabelHandler labelHandler)
6565
return InvokeOnMainThreadAsync(() =>
6666
{
6767
var nativeView = GetPlatformLabel(labelHandler);
68-
return (float)nativeView.Alpha;
68+
return (float)nativeView.Alpha;
6969
});
7070
}
7171
public static IEnumerable<object[]> GetCharacterSpacingWithLineHeightWithTextDecorationsWorksTestData()

src/Controls/tests/DeviceTests/Elements/Picker/PickerTests.iOS.cs

+17-17
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@
99

1010
namespace Microsoft.Maui.DeviceTests
1111
{
12-
public partial class PickerTests : ControlsHandlerTestBase
13-
{
14-
protected Task<string> GetPlatformControlText(MauiPicker platformView)
15-
{
16-
return InvokeOnMainThreadAsync(() => platformView.Text);
17-
}
12+
public partial class PickerTests : ControlsHandlerTestBase
13+
{
14+
protected Task<string> GetPlatformControlText(MauiPicker platformView)
15+
{
16+
return InvokeOnMainThreadAsync(() => platformView.Text);
17+
}
1818

19-
MauiPicker GetPlatformPicker(PickerHandler pickerHandler) =>
20-
pickerHandler.PlatformView;
19+
MauiPicker GetPlatformPicker(PickerHandler pickerHandler) =>
20+
pickerHandler.PlatformView;
2121

22-
Task<float> GetPlatformOpacity(PickerHandler pickerHandler)
23-
{
24-
return InvokeOnMainThreadAsync(() =>
25-
{
26-
var nativeView = GetPlatformPicker(pickerHandler);
27-
return (float)nativeView.Alpha;
28-
});
29-
}
22+
Task<float> GetPlatformOpacity(PickerHandler pickerHandler)
23+
{
24+
return InvokeOnMainThreadAsync(() =>
25+
{
26+
var nativeView = GetPlatformPicker(pickerHandler);
27+
return (float)nativeView.Alpha;
28+
});
29+
}
3030

31-
}
31+
}
3232
}

src/Controls/tests/DeviceTests/Elements/RadioButton/RadioButtonTests.Windows.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
using Microsoft.Maui.Handlers;
2-
using Xunit;
3-
using System.ComponentModel;
1+
using System.ComponentModel;
42
using System.Threading.Tasks;
53
using Microsoft.Maui.Controls;
4+
using Microsoft.Maui.Handlers;
5+
using Xunit;
66

77
namespace Microsoft.Maui.DeviceTests
88
{
@@ -28,9 +28,9 @@ public async Task VerifyRadioButtonOpacityProperty()
2828
var nativeView = GetNativeRadioButton(handler);
2929
await InvokeOnMainThreadAsync(() =>
3030
{
31-
var nativeOpacityValue = (float)nativeView.Opacity;
32-
Assert.Equal(expectedValue, nativeOpacityValue);
33-
});
31+
var nativeOpacityValue = (float)nativeView.Opacity;
32+
Assert.Equal(expectedValue, nativeOpacityValue);
33+
});
3434
}
3535
}
3636
}

src/Controls/tests/DeviceTests/Elements/ScrollView/ScrollViewTests.iOS.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ public async Task ContentSizeExpandsToViewport()
4141
static CoreGraphics.CGSize getViewportSize(UIScrollView scrollView)
4242
{
4343
return scrollView.AdjustedContentInset.InsetRect(scrollView.Bounds).Size;
44-
};
44+
}
45+
;
4546

4647
var scrollViewHandler = await InvokeOnMainThreadAsync(() =>
4748
{

src/Controls/tests/DeviceTests/Elements/SearchBar/SearchBarTests.cs

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

99
namespace Microsoft.Maui.DeviceTests
1010
{
@@ -86,7 +86,7 @@ public async Task VerifySearchBarOpacityProperty()
8686
Opacity = 0.35f
8787
};
8888
var expectedValue = searchBar.Opacity;
89-
89+
9090
var handler = await CreateHandlerAsync<SearchBarHandler>(searchBar);
9191
await InvokeOnMainThreadAsync(async () =>
9292
{

src/Controls/tests/DeviceTests/Elements/SwipeView/SwipeViewTests.Android.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
using System.Threading.Tasks;
1+
using System.ComponentModel;
2+
using System.Threading.Tasks;
23
using Android.Views;
34
using Microsoft.Maui.Controls;
45
using Microsoft.Maui.Graphics;
56
using Microsoft.Maui.Handlers;
67
using Microsoft.Maui.Platform;
78
using Xunit;
89
using static Microsoft.Maui.DeviceTests.AssertHelpers;
9-
using System.ComponentModel;
1010

1111
namespace Microsoft.Maui.DeviceTests
1212
{
@@ -89,14 +89,14 @@ public async Task VerifySwipeViewOpacityProperty()
8989
Opacity = 0.35f
9090
};
9191
var expectedValue = swipeView.Opacity;
92-
92+
9393
var handler = await CreateHandlerAsync<SwipeViewHandler>(swipeView);
9494
var nativeView = GetPlatformControl(handler);
9595
await InvokeOnMainThreadAsync(() =>
9696
{
97-
var nativeOpacityValue = (float)nativeView.Alpha;
98-
Assert.Equal(expectedValue, nativeOpacityValue);
99-
});
97+
var nativeOpacityValue = (float)nativeView.Alpha;
98+
Assert.Equal(expectedValue, nativeOpacityValue);
99+
});
100100
}
101101
}
102102
}

src/Controls/tests/DeviceTests/Elements/SwipeView/SwipeViewTests.iOS.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.Platform;
78
using Xunit;
8-
using System.ComponentModel;
99

1010
namespace Microsoft.Maui.DeviceTests
1111
{
@@ -30,14 +30,14 @@ public async Task VerifySwipeViewOpacityProperty()
3030
Opacity = 0.35f
3131
};
3232
var expectedValue = swipeView.Opacity;
33-
33+
3434
var handler = await CreateHandlerAsync<SwipeViewHandler>(swipeView);
3535
var nativeView = GetPlatformControl(handler);
3636
await InvokeOnMainThreadAsync(() =>
3737
{
38-
var nativeOpacityValue = (float)nativeView.Alpha;
39-
Assert.Equal(expectedValue, nativeOpacityValue);
40-
});
38+
var nativeOpacityValue = (float)nativeView.Alpha;
39+
Assert.Equal(expectedValue, nativeOpacityValue);
40+
});
4141
}
4242
}
4343
}

src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ public async Task MovingBetweenMultiplePagesWithNestedNavigationPages(bool botto
296296
{
297297
Title = title
298298
};
299-
};
299+
}
300+
;
300301

301302
var tabbedPage = CreateBasicTabbedPage(bottomTabs, isSmoothScrollEnabled, pages);
302303

0 commit comments

Comments
 (0)