Skip to content

Commit 5df7b9a

Browse files
authored
Merge pull request #295 from enisn/4.1-update-migration-guide
4.1-update-migration-guide
2 parents 704b9cc + 7a3fdfd commit 5df7b9a

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

docs/en/migration-guides/migrating-to-v4.1.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,47 @@ InputKit version 4.1 comes a couple of breaking-changes. Please check following
55

66
This document applies both to MAUI and Xamarin Forms.
77

8+
9+
### CheckBox
10+
11+
- Material Type no longer sets the border color to same color as the `Color` property. You should set `BorderColor` property to same color as `Color` property if you want to keep the same look.
12+
13+
```xml
14+
<!-- Old -->
15+
<input:CheckBox Type="Material" Color="{StaticResource Primary}">
16+
17+
<!-- New -->
18+
<input:CheckBox Type="Material" Color="{StaticResource Primary}" BorderColor="{StaticResource Primary}">
19+
```
20+
21+
- Now CheckBox.CheckChanged sends CheckChangedEventArgs class instead of blank EventArgs class.
22+
23+
```csharp
24+
public class MainPage : ContentPage
25+
{
26+
public MainPage()
27+
{
28+
InitializeComponent();
29+
30+
checkBox.CheckChanged += CheckBox_CheckChanged;
31+
}
32+
33+
// Old
34+
private void CheckBox_CheckChanged(object sender, EventArgs e)
35+
{
36+
// ...
37+
}
38+
39+
// New
40+
private void CheckBox_CheckChanged(object sender, CheckChangedEventArgs e)
41+
{
42+
Console.WriteLine(e.Value); // Value represents the new value of the checkbox.
43+
// ...
44+
}
45+
46+
}
47+
```
48+
849
### AdvancedEntry
950
- `IconColor` is removed from `AdvancedEntry`.
1051
- `IconImage` property type is changed to `ImageSource` from `string`. _(Not FontImageSource can be passed as parameter.)_

0 commit comments

Comments
 (0)