Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[housekeeping] Automated PR to fix formatting errors #286

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ namespace Microsoft.Maui.Controls.ControlGallery.Issues
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Github, 2143, "Picker on windows phone", PlatformAffected.WinPhone)]
#if UITEST
#if UITEST
[NUnit.Framework.Category(Compatibility.UITests.UITestCategories.TableView)]
#endif
#endif
public class Issue2143 : ContentPage
{
public Issue2143()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ namespace Microsoft.Maui.Controls.ControlGallery.Issues
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 22246, "Entry in Grid nested in ViewCell isn't expanding", PlatformAffected.WinPhone, NavigationBehavior.PushModalAsync)]
#if UITEST
#if UITEST
[NUnit.Framework.Category(Compatibility.UITests.UITestCategories.TableView)]
#endif
#endif
public class Issue22246Bz : ContentPage
{
public Issue22246Bz()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ namespace Microsoft.Maui.Controls.ControlGallery.Issues
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Github, 2615, "iOS Cell Reuse screws up when cells are both ViewCell with different children", PlatformAffected.iOS)]
#if UITEST
#if UITEST
[NUnit.Framework.Category(Compatibility.UITests.UITestCategories.TableView)]
#endif
#endif
public class Issue2615 : ContentPage
{
public Issue2615()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ namespace Microsoft.Maui.Controls.ControlGallery.Issues
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Github, 5555, "Memory leak when SwitchCell or EntryCell", PlatformAffected.iOS)]
#if UITEST
#if UITEST
[NUnit.Framework.Category(Compatibility.UITests.UITestCategories.TableView)]
#endif
#endif
public class Issue5555 : TestContentPage
{
[Preserve(AllMembers = true)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace UITests
{
#if ANDROID
[TestFixture(TestDevice.Android)]
[TestFixture(TestDevice.Android)]
#elif IOSUITEST
[TestFixture(TestDevice.iOS)]
#elif MACUITEST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public UITestContextBase(TestDevice testDevice)
}

public static IUIClientContext? UITestContext { get { return UiTestContext; } }

protected AppiumDriver? Driver
{
get
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using NUnit.Framework;
using System.Drawing;
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;
using System.Drawing;

namespace UITests
{
Expand Down
2 changes: 1 addition & 1 deletion src/Controls/Maps/src/HandlerImpl/Polygon.Impl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public IEnumerator<Location> GetEnumerator()
{
return Geopath.GetEnumerator();
}

/// <summary>
/// Gets the index of a specified location object.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public Bugzilla28570()
// Build the page.
Content = new StackLayout
{
Children =
Children =
{
makeBig,
header,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public Bugzilla35127()
{
Content = new StackLayout
{
Children =
Children =
{
new Label { Text = "See me?" },
new ScrollView {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ public Issue10234Test()
{
Content = new VerticalStackLayout()
{
Children =
Children =
{
new Button()
{
Text = "Go To Test",
AutomationId = "GoToTest",
Command = new Command(() => Application.Current.MainPage = new Issue10234())
new Button()
{
Text = "Go To Test",
AutomationId = "GoToTest",
Command = new Command(() => Application.Current.MainPage = new Issue10234())
}
}
};
};
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using Microsoft.Maui.Controls;
using Microsoft.Maui.Controls.Xaml;
using Microsoft.Maui.Platform;
using Microsoft.Maui.Controls.PlatformConfiguration;
using Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;
using System;
using Microsoft.Maui.Controls.Xaml;
using Microsoft.Maui.Platform;

namespace Maui.Controls.Sample.Issues;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ protected override void Init()
AutomationId = "HardwareEnterKeyEntry"
};

Content =
new VerticalStackLayout()
{
Content =
new VerticalStackLayout()
{
new Label()
{
Text = "Focus entry and hit the Enter key on the hardware keyboard. A success label should appear."
},
entry
};

entry.Completed += (sender, args) =>
{
(Content as VerticalStackLayout)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Microsoft.Maui.Controls;
using Microsoft.Maui.Controls.Xaml;
using Microsoft.Maui.Graphics;
using Microsoft.Maui.Controls.PlatformConfiguration;
using Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;
using NavigationPage = Microsoft.Maui.Controls.NavigationPage;
using Microsoft.Maui.Controls.Xaml;
using Microsoft.Maui.Graphics;
using FlyoutPage = Microsoft.Maui.Controls.FlyoutPage;
using NavigationPage = Microsoft.Maui.Controls.NavigationPage;

namespace Maui.Controls.Sample.Issues;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@ namespace Maui.Controls.Sample.Issues
[Issue(IssueTracker.Github, 17610, "Cancelling Refresh With Slow Scroll Leaves Refresh Icon Visible", PlatformAffected.Android)]
public partial class Issue17610 : ContentPage
{
public IEnumerable ItemSource {get;set;}
public IEnumerable ItemSource { get; set; }

public Issue17610()
{
InitializeComponent();
ItemSource =
Enumerable.Range(0,17)
.Select(x => new { Text = $"Item {x}", AutomationId = $"Item{x}" })
.ToList();
ItemSource =
Enumerable.Range(0, 17)
.Select(x => new { Text = $"Item {x}", AutomationId = $"Item{x}" })
.ToList();

BindableLayout.SetItemsSource(vsl, ItemSource);
#if ANDROID

#if ANDROID
refreshView.HandlerChanged += (x,y) =>
{
if (refreshView.Handler.PlatformView is Microsoft.Maui.Platform.MauiSwipeRefreshLayout refresh)
// In order for the refresh view to have enough contrast to trigger the screen shot comparison code
// we need to set it to a color that will trigger above the threshold
refresh.SetProgressBackgroundColorSchemeResource(Android.Resource.Color.HoloRedDark);
};
#endif
#endif

}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected override void Init()
AutomationId = "Spin",
Text = "Spin",
};
button.Clicked += (s, e) =>
button.Clicked += (s, e) =>
{
circleView.Rotation = 180;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public Issue18242_2()

void OnSliderPaddingValueChanged(object sender, ValueChangedEventArgs e)
{
TopButton.Padding =
BottonButton.Padding =
LeftButton.Padding =
TopButton.Padding =
BottonButton.Padding =
LeftButton.Padding =
RightButton.Padding = new Thickness(e.NewValue);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Maui.Controls.Sample.Issues
[Issue(IssueTracker.Github, 19379, "Not able to update CollectionView header", PlatformAffected.iOS)]
public partial class Issue19379 : ContentPage
{
int _initValue;
int _initValue;
IList<string> _itemList;
Issue19379CustomHeader _customHeader;

Expand Down Expand Up @@ -53,7 +53,7 @@ protected override void OnAppearing()
}



public IList<string> ItemList
{
get { return _itemList; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using Microsoft.Maui.Controls;
using Microsoft.Maui.Controls.Xaml;
using Microsoft.Maui.Graphics;
using System.Collections.Generic;

namespace Maui.Controls.Sample.Issues
{
Expand All @@ -29,14 +29,14 @@ public Issue19657()

class SampleCarouselItem1
{
public SampleCarouselItem1(string title, string description )
{
Title = title;
Description = description;
}
public SampleCarouselItem1(string title, string description)
{
Title = title;
Description = description;
}

public string Title { get; set; }
public string Description { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public Color Color { get; set; }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ protected override async void OnAppearing()
base.OnAppearing();

var closeModalPageButton = new Button() { Text = "Hide", AutomationId = "button" };
closeModalPageButton.Clicked += (s, e) => Navigation.PopAsync();
closeModalPageButton.Clicked += (s, e) => Navigation.PopAsync();

var modalPage = new ContentPage() { Content = closeModalPageButton };

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Maui.Controls.Sample.Issues
[Issue(IssueTracker.Github, 20294, "CollectionView containing a Footer and a Border with StrokeThickness set to decimal value crashes on scroll", PlatformAffected.iOS)]
public partial class Issue20294 : ContentPage
{
public Issue20294()
public Issue20294()
{
InitializeComponent();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ public Issue20439Test()
{
Content = new VerticalStackLayout()
{
Children =
Children =
{
new Button()
{
Text = "Go To Test",
AutomationId = "GoToTest",
Command = new Command(() => Application.Current.MainPage = new Issue20439())
new Button()
{
Text = "Go To Test",
AutomationId = "GoToTest",
Command = new Command(() => Application.Current.MainPage = new Issue20439())
}
}
};
};
}
}

Expand Down
30 changes: 15 additions & 15 deletions src/Controls/samples/Controls.Sample.UITests/Issues/Issue20920.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ public class Issue20920 : TestContentPage
protected override void Init()
{
Content = new ScrollView()
{
Orientation = Microsoft.Maui.ScrollOrientation.Horizontal,
Content = new ScrollView()
{
Orientation = Microsoft.Maui.ScrollOrientation.Vertical,
Content = new Image()
{
Margin = 100,
AutomationId = "dotnet_bot",
Source = "dotnet_bot.png",
HeightRequest = 1000,
WidthRequest = 1000
}
}
};
{
Orientation = Microsoft.Maui.ScrollOrientation.Horizontal,
Content = new ScrollView()
{
Orientation = Microsoft.Maui.ScrollOrientation.Vertical,
Content = new Image()
{
Margin = 100,
AutomationId = "dotnet_bot",
Source = "dotnet_bot.png",
HeightRequest = 1000,
WidthRequest = 1000
}
}
};
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

namespace Maui.Controls.Sample.Issues
{
[XamlCompilation(XamlCompilationOptions.Compile)]
[Issue(IssueTracker.Github, 21314, "Image has wrong orientation on iOS", PlatformAffected.iOS)]
public partial class Issue21314 : ContentPage
{
public Issue21314()
{
InitializeComponent();
}
}
[XamlCompilation(XamlCompilationOptions.Compile)]
[Issue(IssueTracker.Github, 21314, "Image has wrong orientation on iOS", PlatformAffected.iOS)]
public partial class Issue21314 : ContentPage
{
public Issue21314()
{
InitializeComponent();
}
}
}
Loading