diff --git a/src/Compatibility/Core/src/AppHostBuilderExtensions.cs b/src/Compatibility/Core/src/AppHostBuilderExtensions.cs index 2b1a55049de1..b6c9b9ed13bc 100644 --- a/src/Compatibility/Core/src/AppHostBuilderExtensions.cs +++ b/src/Compatibility/Core/src/AppHostBuilderExtensions.cs @@ -12,7 +12,7 @@ public static IAppHostBuilder RegisterCompatibilityRenderers(this IAppHostBuilde var defaultHandlers = new List { typeof(Button) , - typeof(Editor), + typeof(Editor), typeof(Entry) , typeof(ContentPage) , typeof(Page) , diff --git a/src/Controls/src/Core/Entry.cs b/src/Controls/src/Core/Entry.cs index 42d4d83f6f1d..f28caeca3154 100644 --- a/src/Controls/src/Core/Entry.cs +++ b/src/Controls/src/Core/Entry.cs @@ -144,7 +144,7 @@ void IFontElement.OnFontSizeChanged(double oldValue, double newValue) => void IFontElement.OnFontChanged(Font oldValue, Font newValue) => HandleFontChanged(); - void HandleFontChanged() + void HandleFontChanged() { // Null out the Maui font value so it will be recreated next time it's accessed _font = null; diff --git a/src/Controls/src/Core/HandlerImpl/ProgressBar.Impl.cs b/src/Controls/src/Core/HandlerImpl/ProgressBar.Impl.cs index ba942a247cdf..6acb0356475e 100644 --- a/src/Controls/src/Core/HandlerImpl/ProgressBar.Impl.cs +++ b/src/Controls/src/Core/HandlerImpl/ProgressBar.Impl.cs @@ -2,6 +2,6 @@ { public partial class ProgressBar : IProgress { - + } } \ No newline at end of file diff --git a/src/Controls/tests/Xaml.UnitTests/BindingDiagnosticsTests.xaml.cs b/src/Controls/tests/Xaml.UnitTests/BindingDiagnosticsTests.xaml.cs index b0abb7782094..1ab87de48d99 100644 --- a/src/Controls/tests/Xaml.UnitTests/BindingDiagnosticsTests.xaml.cs +++ b/src/Controls/tests/Xaml.UnitTests/BindingDiagnosticsTests.xaml.cs @@ -21,7 +21,7 @@ public BindingDiagnosticsTests(bool useCompiledXaml) [TestFixture] #if !DEBUG [Ignore("This test runs only in debug")] -#endif +#endif public class Tests { [SetUp] public void Setup() => Device.PlatformServices = new MockPlatformServices(); diff --git a/src/Controls/tests/Xaml.UnitTests/MSBuild/MSBuildTests.cs b/src/Controls/tests/Xaml.UnitTests/MSBuild/MSBuildTests.cs index d55c9ad6fa51..6df399219de2 100644 --- a/src/Controls/tests/Xaml.UnitTests/MSBuild/MSBuildTests.cs +++ b/src/Controls/tests/Xaml.UnitTests/MSBuild/MSBuildTests.cs @@ -207,7 +207,7 @@ void onData(object s, DataReceivedEventArgs e) // Add the binlog as a test attachment var binlog = IOPath.Combine(IOPath.GetDirectoryName(projectFile), "msbuild.binlog"); - if (File.Exists (binlog)) + if (File.Exists(binlog)) { TestContext.AddTestAttachment(binlog); } diff --git a/src/Core/src/Handlers/Label/LabelHandler.Android.cs b/src/Core/src/Handlers/Label/LabelHandler.Android.cs index d3ab7caedfb4..381692ccb337 100644 --- a/src/Core/src/Handlers/Label/LabelHandler.Android.cs +++ b/src/Core/src/Handlers/Label/LabelHandler.Android.cs @@ -37,7 +37,7 @@ public static void MapCharacterSpacing(LabelHandler handler, ILabel label) handler.TypedNativeView?.UpdateCharacterSpacing(label); } - public static void MapPadding(LabelHandler handler, ILabel label) + public static void MapPadding(LabelHandler handler, ILabel label) { handler.TypedNativeView?.UpdatePadding(label); } @@ -49,7 +49,7 @@ public static void MapTextDecorations(LabelHandler handler, ILabel label) static void MapFont(LabelHandler handler, ILabel label) { - var services = App.Current?.Services + var services = App.Current?.Services ?? throw new InvalidOperationException($"Unable to find service provider, the App.Current.Services was null."); var fontManager = services.GetRequiredService(); diff --git a/src/Core/src/Handlers/Label/LabelHandler.Standard.cs b/src/Core/src/Handlers/Label/LabelHandler.Standard.cs index f82897cc4b6d..de95fc417afe 100644 --- a/src/Core/src/Handlers/Label/LabelHandler.Standard.cs +++ b/src/Core/src/Handlers/Label/LabelHandler.Standard.cs @@ -10,7 +10,7 @@ public static void MapText(IViewHandler handler, ILabel label) { } public static void MapTextColor(IViewHandler handler, ILabel label) { } public static void MapCharacterSpacing(IViewHandler handler, ILabel label) { } public static void MapFont(LabelHandler handler, ILabel label) { } - public static void MapPadding(LabelHandler handler, ILabel label) { } + public static void MapPadding(LabelHandler handler, ILabel label) { } public static void MapTextDecorations(LabelHandler handler, ILabel label) { } } } \ No newline at end of file diff --git a/src/Core/src/Handlers/Label/LabelHandler.iOS.cs b/src/Core/src/Handlers/Label/LabelHandler.iOS.cs index 9d01c73f8482..234fbf66feeb 100644 --- a/src/Core/src/Handlers/Label/LabelHandler.iOS.cs +++ b/src/Core/src/Handlers/Label/LabelHandler.iOS.cs @@ -35,7 +35,7 @@ public static void MapTextDecorations(LabelHandler handler, ILabel label) static void MapFont(LabelHandler handler, ILabel label) { - var services = App.Current?.Services ?? + var services = App.Current?.Services ?? throw new InvalidOperationException($"Unable to find service provider, the App.Current.Services was null."); var fontManager = services.GetRequiredService(); diff --git a/src/Core/src/Platform/Android/EntryExtensions.cs b/src/Core/src/Platform/Android/EntryExtensions.cs index ce2fbeb938bc..083e9e161075 100644 --- a/src/Core/src/Platform/Android/EntryExtensions.cs +++ b/src/Core/src/Platform/Android/EntryExtensions.cs @@ -57,7 +57,7 @@ internal static void SetInputType(this EditText editText, IEntry entry) if (!entry.IsTextPredictionEnabled && ((editText.InputType & InputTypes.TextFlagNoSuggestions) != InputTypes.TextFlagNoSuggestions)) editText.InputType |= InputTypes.TextFlagNoSuggestions; - + if (entry.IsReadOnly) editText.InputType = InputTypes.Null; } diff --git a/src/Core/tests/DeviceTests/Handlers/Entry/EntryHandlerTests.Android.cs b/src/Core/tests/DeviceTests/Handlers/Entry/EntryHandlerTests.Android.cs index 2142fbe02e15..ca2a28f526c0 100644 --- a/src/Core/tests/DeviceTests/Handlers/Entry/EntryHandlerTests.Android.cs +++ b/src/Core/tests/DeviceTests/Handlers/Entry/EntryHandlerTests.Android.cs @@ -36,7 +36,7 @@ bool GetNativeIsTextPredictionEnabled(EntryHandler entryHandler) => string GetNativePlaceholder(EntryHandler entryHandler) => GetNativeEntry(entryHandler).Hint; - bool GetNativeIsReadOnly(EntryHandler entryHandler) + bool GetNativeIsReadOnly(EntryHandler entryHandler) { var editText = GetNativeEntry(entryHandler); diff --git a/src/Core/tests/DeviceTests/Handlers/ProgressBar/ProgressBarTests.iOS.cs b/src/Core/tests/DeviceTests/Handlers/ProgressBar/ProgressBarTests.iOS.cs index c18e8247909c..39b2ffa2ed3e 100644 --- a/src/Core/tests/DeviceTests/Handlers/ProgressBar/ProgressBarTests.iOS.cs +++ b/src/Core/tests/DeviceTests/Handlers/ProgressBar/ProgressBarTests.iOS.cs @@ -1,5 +1,5 @@ -using UIKit; -using Microsoft.Maui.Handlers; +using Microsoft.Maui.Handlers; +using UIKit; namespace Microsoft.Maui.DeviceTests {