Skip to content

Commit 6752a2a

Browse files
github-actions[bot]PureWeen
authored andcommitted
[create-pull-request] automated change (#30019)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6e1d55d commit 6752a2a

File tree

8 files changed

+833
-833
lines changed

8 files changed

+833
-833
lines changed

src/Controls/src/Core/GridLengthTypeConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ internal static GridLength ParseStringToGridLength(string value)
4444
#if NET6_0_OR_GREATER
4545
var lastChar = value[^1];
4646
#else
47-
var lastChar = value[value.Length - 1];
47+
var lastChar = value[value.Length - 1];
4848
#endif
4949
if (lastChar == '*')
5050
{

src/Controls/tests/TestCases.HostApp/FeatureMatrix/BoxView/BoxViewViewModel.cs

Lines changed: 167 additions & 167 deletions
Original file line numberDiff line numberDiff line change
@@ -5,183 +5,183 @@ namespace Maui.Controls.Sample;
55

66
public class BoxViewViewModel : INotifyPropertyChanged
77
{
8-
private Color _color = Colors.Blue;
9-
private double _width = 200;
10-
private double _height = 100;
11-
private bool _isVisible = true;
12-
private double _opacity = 1.0;
13-
private CornerRadius _cornerRadius;
14-
private bool _isRedChecked = false;
15-
private bool _isBlueChecked = true;
16-
private FlowDirection _flowDirection = FlowDirection.LeftToRight;
8+
private Color _color = Colors.Blue;
9+
private double _width = 200;
10+
private double _height = 100;
11+
private bool _isVisible = true;
12+
private double _opacity = 1.0;
13+
private CornerRadius _cornerRadius;
14+
private bool _isRedChecked = false;
15+
private bool _isBlueChecked = true;
16+
private FlowDirection _flowDirection = FlowDirection.LeftToRight;
1717

1818

19-
private string _cornerRadiusEntryText = null;
20-
private string _opacityEntryText = null;
19+
private string _cornerRadiusEntryText = null;
20+
private string _opacityEntryText = null;
2121

22-
public string CornerRadiusEntryText
23-
{
24-
get => _cornerRadiusEntryText;
25-
set
26-
{
27-
if (_cornerRadiusEntryText != value)
28-
{
29-
_cornerRadiusEntryText = value;
30-
if (double.TryParse(value, out double radius))
31-
CornerRadius = radius;
32-
OnPropertyChanged();
33-
}
34-
}
35-
}
22+
public string CornerRadiusEntryText
23+
{
24+
get => _cornerRadiusEntryText;
25+
set
26+
{
27+
if (_cornerRadiusEntryText != value)
28+
{
29+
_cornerRadiusEntryText = value;
30+
if (double.TryParse(value, out double radius))
31+
CornerRadius = radius;
32+
OnPropertyChanged();
33+
}
34+
}
35+
}
3636

37-
public string OpacityEntryText
38-
{
39-
get => _opacityEntryText;
40-
set
41-
{
42-
if (_opacityEntryText != value)
43-
{
44-
_opacityEntryText = value;
45-
if (double.TryParse(value, out double opacity))
46-
Opacity = opacity;
47-
OnPropertyChanged();
48-
}
49-
}
50-
}
37+
public string OpacityEntryText
38+
{
39+
get => _opacityEntryText;
40+
set
41+
{
42+
if (_opacityEntryText != value)
43+
{
44+
_opacityEntryText = value;
45+
if (double.TryParse(value, out double opacity))
46+
Opacity = opacity;
47+
OnPropertyChanged();
48+
}
49+
}
50+
}
5151

52-
public bool IsRedChecked
53-
{
54-
get => _isRedChecked;
55-
set
56-
{
57-
if (_isRedChecked != value)
58-
{
59-
_isRedChecked = value;
60-
if (value)
61-
Color = Colors.Red;
62-
OnPropertyChanged();
63-
}
64-
}
65-
}
52+
public bool IsRedChecked
53+
{
54+
get => _isRedChecked;
55+
set
56+
{
57+
if (_isRedChecked != value)
58+
{
59+
_isRedChecked = value;
60+
if (value)
61+
Color = Colors.Red;
62+
OnPropertyChanged();
63+
}
64+
}
65+
}
6666

67-
public bool IsBlueChecked
68-
{
69-
get => _isBlueChecked;
70-
set
71-
{
72-
if (_isBlueChecked != value)
73-
{
74-
_isBlueChecked = value;
75-
if (value)
76-
Color = Colors.Blue;
77-
OnPropertyChanged();
78-
}
79-
}
80-
}
81-
public double Opacity
82-
{
83-
get => _opacity;
84-
set
85-
{
86-
if (_opacity != value)
87-
{
88-
_opacity = value;
89-
OnPropertyChanged(nameof(Opacity));
90-
}
91-
}
92-
}
93-
public CornerRadius CornerRadius
94-
{
95-
get => _cornerRadius;
96-
set
97-
{
98-
if (_cornerRadius != value)
99-
{
100-
_cornerRadius = value;
101-
OnPropertyChanged(nameof(CornerRadius));
102-
}
103-
}
104-
}
105-
public bool IsVisible
106-
{
107-
get => _isVisible;
108-
set
109-
{
110-
_isVisible = value;
111-
OnPropertyChanged();
112-
}
113-
}
114-
private bool _hasShadow = false;
115-
private Shadow _boxShadow = null;
67+
public bool IsBlueChecked
68+
{
69+
get => _isBlueChecked;
70+
set
71+
{
72+
if (_isBlueChecked != value)
73+
{
74+
_isBlueChecked = value;
75+
if (value)
76+
Color = Colors.Blue;
77+
OnPropertyChanged();
78+
}
79+
}
80+
}
81+
public double Opacity
82+
{
83+
get => _opacity;
84+
set
85+
{
86+
if (_opacity != value)
87+
{
88+
_opacity = value;
89+
OnPropertyChanged(nameof(Opacity));
90+
}
91+
}
92+
}
93+
public CornerRadius CornerRadius
94+
{
95+
get => _cornerRadius;
96+
set
97+
{
98+
if (_cornerRadius != value)
99+
{
100+
_cornerRadius = value;
101+
OnPropertyChanged(nameof(CornerRadius));
102+
}
103+
}
104+
}
105+
public bool IsVisible
106+
{
107+
get => _isVisible;
108+
set
109+
{
110+
_isVisible = value;
111+
OnPropertyChanged();
112+
}
113+
}
114+
private bool _hasShadow = false;
115+
private Shadow _boxShadow = null;
116116

117-
public bool HasShadow
118-
{
119-
get => _hasShadow;
120-
set
121-
{
122-
if (_hasShadow != value)
123-
{
124-
_hasShadow = value;
125-
BoxShadow = value
126-
? new Shadow
127-
{
128-
Radius = 10,
129-
Opacity = 1.0f,
130-
Brush = Colors.Black.AsPaint(),
131-
Offset = new Point(5, 5)
132-
}
133-
: null;
134-
OnPropertyChanged(nameof(HasShadow));
135-
}
136-
}
137-
}
117+
public bool HasShadow
118+
{
119+
get => _hasShadow;
120+
set
121+
{
122+
if (_hasShadow != value)
123+
{
124+
_hasShadow = value;
125+
BoxShadow = value
126+
? new Shadow
127+
{
128+
Radius = 10,
129+
Opacity = 1.0f,
130+
Brush = Colors.Black.AsPaint(),
131+
Offset = new Point(5, 5)
132+
}
133+
: null;
134+
OnPropertyChanged(nameof(HasShadow));
135+
}
136+
}
137+
}
138138

139-
public Shadow BoxShadow
140-
{
141-
get => _boxShadow;
142-
private set
143-
{
144-
if (_boxShadow != value)
145-
{
146-
_boxShadow = value;
147-
OnPropertyChanged(nameof(BoxShadow));
148-
}
149-
}
150-
}
139+
public Shadow BoxShadow
140+
{
141+
get => _boxShadow;
142+
private set
143+
{
144+
if (_boxShadow != value)
145+
{
146+
_boxShadow = value;
147+
OnPropertyChanged(nameof(BoxShadow));
148+
}
149+
}
150+
}
151151

152-
public Color Color
153-
{
154-
get => _color;
155-
set { _color = value; OnPropertyChanged(); }
156-
}
152+
public Color Color
153+
{
154+
get => _color;
155+
set { _color = value; OnPropertyChanged(); }
156+
}
157157

158-
public double Width
159-
{
160-
get => _width;
161-
set { _width = value; OnPropertyChanged(); }
162-
}
158+
public double Width
159+
{
160+
get => _width;
161+
set { _width = value; OnPropertyChanged(); }
162+
}
163163

164-
public double Height
165-
{
166-
get => _height;
167-
set { _height = value; OnPropertyChanged(); }
168-
}
169-
public FlowDirection FlowDirection
170-
{
171-
get => _flowDirection;
172-
set
173-
{
174-
if (_flowDirection != value)
175-
{
176-
_flowDirection = value;
177-
OnPropertyChanged();
178-
}
179-
}
180-
}
181-
public event PropertyChangedEventHandler PropertyChanged;
164+
public double Height
165+
{
166+
get => _height;
167+
set { _height = value; OnPropertyChanged(); }
168+
}
169+
public FlowDirection FlowDirection
170+
{
171+
get => _flowDirection;
172+
set
173+
{
174+
if (_flowDirection != value)
175+
{
176+
_flowDirection = value;
177+
OnPropertyChanged();
178+
}
179+
}
180+
}
181+
public event PropertyChangedEventHandler PropertyChanged;
182182

183-
protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
184-
{
185-
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
186-
}
183+
protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
184+
{
185+
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
186+
}
187187
}

0 commit comments

Comments
 (0)