Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit a481965

Browse files
Automated dotnet-format update (#13646)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 26b06da commit a481965

File tree

5 files changed

+75
-75
lines changed

5 files changed

+75
-75
lines changed

Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue12642.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Xamarin.Forms.Controls.Issues
1919
[Category(UITestCategories.Shell)]
2020
#endif
2121
public class Issue12642 : TestShell
22-
{
22+
{
2323
protected override void Init()
2424
{
2525
var page = AddTopTab("Tab 1");

Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue13616.xaml.cs

Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ namespace Xamarin.Forms.Controls.Issues
1515
#if UITEST
1616
[Category(UITestCategories.CarouselView)]
1717
#endif
18-
[Preserve(AllMembers = true)]
19-
[Issue(IssueTracker.Github, 13616,
20-
"[Bug] After updating XF 5.0.0.1931 getting Java.Lang.IllegalArgumentException: Invalid target position at Java.Interop.JniEnvironment+InstanceMethods.CallVoidMethod",
18+
[Preserve(AllMembers = true)]
19+
[Issue(IssueTracker.Github, 13616,
20+
"[Bug] After updating XF 5.0.0.1931 getting Java.Lang.IllegalArgumentException: Invalid target position at Java.Interop.JniEnvironment+InstanceMethods.CallVoidMethod",
2121
PlatformAffected.Android)]
2222
public partial class Issue13616 : TestContentPage
2323
{
2424
public Issue13616()
2525
{
2626
#if APP
2727
InitializeComponent();
28-
BindingContext = new Issue13616ViewModel();
28+
BindingContext = new Issue13616ViewModel();
2929
#endif
30-
}
30+
}
3131

32-
protected override void Init()
32+
protected override void Init()
3333
{
34-
}
34+
}
3535

3636
#if UITEST && __ANDROID__
3737
[Test]
@@ -42,74 +42,74 @@ public void Issue13616Test()
4242
RunningApp.WaitForElement("CarouselViewId");
4343
}
4444
#endif
45-
}
45+
}
4646

47-
[Preserve(AllMembers = true)]
48-
public class Issue13616Model
49-
{
50-
public string Name { get; set; }
51-
public string Desc { get; set; }
52-
public Color Color { get; set; }
53-
public double Scale { get; set; }
54-
}
47+
[Preserve(AllMembers = true)]
48+
public class Issue13616Model
49+
{
50+
public string Name { get; set; }
51+
public string Desc { get; set; }
52+
public Color Color { get; set; }
53+
public double Scale { get; set; }
54+
}
5555

56-
[Preserve(AllMembers = true)]
57-
public class Issue13616ViewModel : BindableObject
58-
{
59-
int _i = 4;
60-
ObservableCollection<Issue13616Model> _myList { get; set; } = new ObservableCollection<Issue13616Model>();
56+
[Preserve(AllMembers = true)]
57+
public class Issue13616ViewModel : BindableObject
58+
{
59+
int _i = 4;
60+
ObservableCollection<Issue13616Model> _myList { get; set; } = new ObservableCollection<Issue13616Model>();
6161

62-
public Issue13616ViewModel()
63-
{
64-
Items = new ObservableCollection<Issue13616Model>
65-
{
66-
new Issue13616Model
67-
{
68-
Name = "Card 1",
69-
Desc = "Card Holder Name 1",
70-
Color = Color.Yellow
71-
},
72-
new Issue13616Model
73-
{
74-
Name = "Card 2",
75-
Desc = "Card Holder Name 2",
76-
Color = Color.Orange
77-
},
78-
new Issue13616Model
79-
{
80-
Name = "Card 3",
81-
Desc = "Card Holder Name 3",
82-
Color = Color.Red
83-
}
84-
};
85-
}
62+
public Issue13616ViewModel()
63+
{
64+
Items = new ObservableCollection<Issue13616Model>
65+
{
66+
new Issue13616Model
67+
{
68+
Name = "Card 1",
69+
Desc = "Card Holder Name 1",
70+
Color = Color.Yellow
71+
},
72+
new Issue13616Model
73+
{
74+
Name = "Card 2",
75+
Desc = "Card Holder Name 2",
76+
Color = Color.Orange
77+
},
78+
new Issue13616Model
79+
{
80+
Name = "Card 3",
81+
Desc = "Card Holder Name 3",
82+
Color = Color.Red
83+
}
84+
};
85+
}
8686

87-
public ObservableCollection<Issue13616Model> Items
88-
{
89-
get
90-
{
91-
return _myList;
92-
}
93-
set
94-
{
95-
_myList = value;
96-
OnPropertyChanged(nameof(Items));
97-
}
98-
}
87+
public ObservableCollection<Issue13616Model> Items
88+
{
89+
get
90+
{
91+
return _myList;
92+
}
93+
set
94+
{
95+
_myList = value;
96+
OnPropertyChanged(nameof(Items));
97+
}
98+
}
9999

100-
public ICommand AddCardCommand { get { return new Command(AddCard); } }
100+
public ICommand AddCardCommand { get { return new Command(AddCard); } }
101101

102-
void AddCard()
103-
{
104-
var tempList = Items.ToList();
105-
tempList.Add(new Issue13616Model
106-
{
107-
Name = "Card " + _i,
108-
Desc = "Card Holder Name " + _i,
109-
Color = Color.Blue
110-
});
111-
Items = new ObservableCollection<Issue13616Model>(tempList);
112-
_i++;
113-
}
114-
}
102+
void AddCard()
103+
{
104+
var tempList = Items.ToList();
105+
tempList.Add(new Issue13616Model
106+
{
107+
Name = "Card " + _i,
108+
Desc = "Card Holder Name " + _i,
109+
Color = Color.Blue
110+
});
111+
Items = new ObservableCollection<Issue13616Model>(tempList);
112+
_i++;
113+
}
114+
}
115115
}

Xamarin.Forms.Platform.Android/Renderers/EntryRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ protected override void Dispose(bool disposing)
214214
{
215215
formsEditContext.OnKeyboardBackPressed -= OnKeyboardBackPressed;
216216
formsEditContext.SelectionChanged -= SelectionChanged;
217-
217+
218218
ListenForCloseBtnTouch(false);
219219
}
220220
}

Xamarin.Forms.Platform.Android/Renderers/SearchBarRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ protected override void Dispose(bool disposing)
356356
return;
357357

358358
_isDisposed = true;
359-
359+
360360
if (disposing)
361361
{
362362
if (Control.IsAlive())

Xamarin.Forms.Platform.Android/Renderers/SliderRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ protected override void Dispose(bool disposing)
221221
return;
222222

223223
_isDisposed = true;
224-
224+
225225
if (disposing)
226226
{
227227
if (Control.IsAlive())

0 commit comments

Comments
 (0)