From 7a3fdfdb9cab96d087baee706076a16cfade5b62 Mon Sep 17 00:00:00 2001 From: Enis Necipoglu Date: Tue, 6 Sep 2022 23:22:07 +0300 Subject: [PATCH] 4.1-update-migration-guide --- docs/en/migration-guides/migrating-to-v4.1.md | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/docs/en/migration-guides/migrating-to-v4.1.md b/docs/en/migration-guides/migrating-to-v4.1.md index 7fdb277..1ee1126 100644 --- a/docs/en/migration-guides/migrating-to-v4.1.md +++ b/docs/en/migration-guides/migrating-to-v4.1.md @@ -5,6 +5,47 @@ InputKit version 4.1 comes a couple of breaking-changes. Please check following This document applies both to MAUI and Xamarin Forms. + +### CheckBox + +- 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. + + ```xml + + + + + + ``` + +- Now CheckBox.CheckChanged sends CheckChangedEventArgs class instead of blank EventArgs class. + + ```csharp + public class MainPage : ContentPage + { + public MainPage() + { + InitializeComponent(); + + checkBox.CheckChanged += CheckBox_CheckChanged; + } + + // Old + private void CheckBox_CheckChanged(object sender, EventArgs e) + { + // ... + } + + // New + private void CheckBox_CheckChanged(object sender, CheckChangedEventArgs e) + { + Console.WriteLine(e.Value); // Value represents the new value of the checkbox. + // ... + } + + } + ``` + ### AdvancedEntry - `IconColor` is removed from `AdvancedEntry`. - `IconImage` property type is changed to `ImageSource` from `string`. _(Not FontImageSource can be passed as parameter.)_