Xamarin.Forms 4.1.0.581479 (4.1.0 Service Release 1) Release Notes

Getting Started | What's New | Known Issues | Breaking Changes | API Changes | Blogs | Thank you | Feedback | Open Source

What's New in this Release

Notable Changes

Shell

  • Github #6176 - "XAML compilation fails with generic types and event bindings to a page base class" (#6194) (added in 4.1.0.581479 (4.1.0 Service Release 1))
  • Github #6543 - "[Bug] Shell QueryProperty Parameter Ignored when Navigating to existing subpage" (#6695) (added in 4.1.0.581479 (4.1.0 Service Release 1))

Visual

  • "[Tizen] Add TFM identifier and version explicitly for vs2019 16.1" (#6304)
  • "[Tizen]Add Material Style Renderers" (#6204)
  • Github #1728 - "[Enhancement] Checkbox Control" (#6232)
  • Github #4832 - "Editor crashes when my app was updated to latest xamarin.forms 3.4 .0.1008975 " (#5653)

F100s

Features in Preview

CollectionView

  • "[Tizen] Add CollectionView Tizen Renderer" (#5364)
  • "[Tizen] Enhancement CollectionView implementation on Tizen " (#6181)
  • "Implement ItemSizingStrategy.MeasureFirstItem on Android" (#6422) (added in 4.1.0.555618 (4.1.0))
  • "Intellisense for CollectionView basic list options" (#6537) (added in 4.1.0.555618 (4.1.0))
  • Github #4658 - "[CollectionView, UWP] Updating items shows white rows" (#6465) (added in 4.1.0.555618 (4.1.0))
  • Github #4681 - "[Enhancement] CollectionView item spacing" (#6478) (added in 4.1.0.555618 (4.1.0))
  • Github #5693 - "CollectionView crashes on Android 5.1.1 when selecting item" (#5760)
  • Github #5765 - "[Frame, CollectionView, Android]The Label.Text is invisible on Android if DataTemplate have frame as layout" (#6285)
  • Github #5949 - "[Bug] CollectionView cannot access a disposed object." (#6057)
  • Github #6077 - "[Bug] CollectionView (iOS) using horizontal grid does not display last column of uneven item count" (#6241) (added in 4.1.0.555618 (4.1.0))
  • Github #6158 - "[Enhancement] Allow to maually deselect item from CollectionView" (#6085)
  • Github #6427 - "[CollectionView, Android] DisposedObjectException thrown when adding elements to ItemsSource after having disposed CollectionView containing EmptyView" (#6525) (added in 4.1.0.555618 (4.1.0))
  • Github #6582 - "[Bug] iOS ItemsViewLayout - Dispose - Subscribes to itemsLayout PropertyChanged event?" (#6583) (added in 4.1.0.555618 (4.1.0))

Release History

  • Tuesday, July 9, 2019 - Xamarin.Forms 4.1.0.581479 (4.1.0 Service Release 1)
  • Monday, July 1, 2019 - Xamarin.Forms 4.1.0.555618 (4.1.0)
  • Wednesday, June 12, 2019 - Xamarin.Forms 4.1.0.496342-pre2 (4.1.0 Pre Release 2)
  • Tuesday, June 4, 2019 - Xamarin.Forms 4.1.0.483098-pre1 (4.1.0 Pre Release 1)

Tuesday, July 9, 2019 - Xamarin.Forms 4.1.0.581479 (4.1.0 Service Release 1)

Issues Fixed

  • Github #6176 - "XAML compilation fails with generic types and event bindings to a page base class" (#6194)
  • Github #6543 - "[Bug] Shell QueryProperty Parameter Ignored when Navigating to existing subpage" (#6695)
  • Github #6614 - "[Bug] Argument Null Exception on Android" (#6675)
  • Github #6668 - "[Bug] XamlGeneratedCode.@__Type0 from multiple assemblies causes conflicts with imported types" (#6669)

Additional fixes included in this release

  • "[Tizen] Added support AutomationProperties" (#6080)
  • "[UWP] Fixed resetting the background color of the frame" (#6435)
  • "Unhook Page from embedded Application on disposal" (#6735)
  • Github #4409 - "GTK navigation is broken" (#6692)

Monday, July 1, 2019 - Xamarin.Forms 4.1.0.555618 (4.1.0)

Issues Fixed

  • Github #2577 - "Hamburger icon not shown when using FormsAppCompatActivity" (#6548)
  • Github #3454 - "Picker accessibility text is wrong" (#3955) (#5125) (#5145)
  • Github #4658 - "[CollectionView, UWP] Updating items shows white rows" (#6465)
  • Github #4671 - "Xamarin Forms Native embedding Memory issue" (#6636)
  • Github #5340 - " Xamarin.UWP app usually hangs when using narrator" (#6431)
  • Github #6077 - "[Bug] CollectionView (iOS) using horizontal grid does not display last column of uneven item count" (#6241)
  • Github #6235 - "[Bug] Keyboard remains visible after tapping on picker control" (#6284)
  • Github #6427 - "[CollectionView, Android] DisposedObjectException thrown when adding elements to ItemsSource after having disposed CollectionView containing EmptyView" (#6525)
  • Github #6501 - "[UWP] "FormsCheckBoxStyle.xbf" error thrown on build when using CheckBox" (#6504)
  • Github #6517 - "Forms 4.1: Device.GetNamedSize throws exception on Android" (#6591)
  • Github #6582 - "[Bug] iOS ItemsViewLayout - Dispose - Subscribes to itemsLayout PropertyChanged event?" (#6583)
  • Github #6635 - "[Bug] Template applied several times" (#6641)

Additional fixes included in this release

  • "[Android] Fixed applying effects to Frames" (#6412)
  • "[iOS] adds a flag to ios if user needs to disable accessibility sizing for named font sizes" (#6345)
  • "[ios] change checkbox to use default constructor" (#6512)
  • "Fix for layouts in a cell to expand on resize (WPF) Issue #5682" (#6179)
  • "Implement ItemSizingStrategy.MeasureFirstItem on Android" (#6422)
  • "Intellisense for CollectionView basic list options" (#6537)
  • "Resolve fallback type before trying to make constructed generic type" (#6511)
  • "Set ExceptionHandler on HydrationContext in SetTemplate()" (#6573)

Wednesday, June 12, 2019 - Xamarin.Forms 4.1.0.496342-pre2 (4.1.0 Pre Release 2)

Additional fixes included in this release

  • "[Xaml/XamlC] Allow to connect to event handler with overloads" (#5118)
  • "handle implicit resources" (#6416)

Tuesday, June 4, 2019 - Xamarin.Forms 4.1.0.483098-pre1 (4.1.0 Pre Release 1)

Issues Fixed

  • Github #2229 - "[UWP] Embedding Forms page in second UWP Window throws exception" (#2432) (#5658)
  • Github #3777 - "Dark mode on Mojave doesn't work right" (#5537)
  • Github #3886 - "UWP Master Detail Page Height Incorrect After Resizing App Window" (#5338)
  • Github #4325 - "Unable to activate instance of type Xamarin.Forms.Platform.Android.AppCompat.TabbedPageRenderer from native handle" (#4707)
  • Github #4706 - "Android crash on main page change" (#4707)
  • Github #4832 - "Editor crashes when my app was updated to latest xamarin.forms 3.4 .0.1008975 " (#5653)
  • Github #4879 - "[UWP] ImageButton Padding applied inwards instead of outwards" (#5837)
  • Github #5030 - " Editor cause app crash after clicking the done/next button when on landscape mode in Android" (#5653)
  • Github #5204 - "[Feedback] Xamarin Forms on macOS requires a Width and HeightRequest" (#5600)
  • Github #5252 - "iOS: Color of Editor Placeholder is different than Entry" (#5259)
  • Github #5330 - "[XamlC] Error should be thrown when x:DataType="{x:Type XXX}" is specified in XAMLC" (#5335)
  • Github #5412 - "Xamarin.Forms UWP Navigation bar Disappear while press back button to MasterDetailPage " (#5808)
  • Github #5446 - "[Android]FrameRenderer is creating new FrameDrawable every time BackgroundColor changes without disposing" (#5617)
  • Github #5486 - "BindableLayout DataTemplate - XamlC" (#6178)
  • Github #5533 - "[GTK] Padding/Margin issues" (#5764)
  • Github #5637 - "[Feedback] Xamarin Forms Shared project UWP menu disappears with no way to go back or show the menu again." (#5808)
  • Github #5651 - "Compiled Bindings does not work with Inherited Generic Interfaces" (#6178)
  • Github #5693 - "CollectionView crashes on Android 5.1.1 when selecting item" (#5760)
  • Github #5700 - "ListView System.NullReferenceException" (#5756)
  • Github #5765 - "[Frame, CollectionView, Android]The Label.Text is invisible on Android if DataTemplate have frame as layout" (#6285)
  • Github #5782 - "[CollectionView,Frame] Margin on Frame is not respected in CollectionView" (#6285)
  • Github #5801 - "TextDecorations Strikethrough not called for FormattedText in iOS" (#5803)
  • Github #5832 - "CollectionView doesn't reset visual selection state" (#6085)
  • Github #5881 - "[macOS] NRE when disposing an Entry" (#5914)
  • Github #5921 - "[Bug] WPF TreeHelper doesn't pass forceUsingTheVisualTreeHelper to recursive calls" (#5922)
  • Github #5949 - "[Bug] CollectionView cannot access a disposed object." (#6057)
  • Github #6021 - "[Bug] [macOS] [iOS] ListView does not handle transparent backgrounds correctly" (#6050)
  • Github #6144 - "[Bug] [UWP] MasterDetail Page menu with footer doesn't render correctly" (#5338)
  • Github #6158 - "[Enhancement] Allow to maually deselect item from CollectionView" (#6085)

Additional fixes included in this release

  • "[GTK] Add Alpha support to Frame background" (#6092)
  • "[iOS] Fix: memory leak when Navigation.RemovePage is used" (#5695)
  • "[macOS] Image crashes App during disposing its renderer" (#5363)
  • "[Tizen] Add TFM identifier and version explicitly for vs2019 16.1" (#6304)
  • "[Tizen] Enhancement CollectionView implementation on Tizen " (#6181)
  • "[Tizen] Fix CarouselPage focus issue" (#5483)
  • "[Tizen] Support new Named Font Sizes for Tizen" (#6113)
  • "[Tizen] Support the Keyboard, MaxLength, IsSpellCheckEnabled, IsReadO…" (#5688)
  • "[Tizen]Add Material Style Renderers" (#6204)
  • "[UWP] fix ListView renderer" (#5144)
  • "[Xaml/XamlC] Allow to connect to static event handler" (#5119)
  • "[Xaml] better exception message in case of a TypeConversion issue" (#6101)
  • "[Xaml] Throw XamlParseException when a duplicate property is detected" (#5558)
  • "[XamlC] Fix message for unresolved event handler reference in DataTemplate" (#5502)
  • "cellrenderer leak fixes + test" (#5655)
  • "Change error message when Map.ItemTemplate is set to a DataTemplateSelector" (#5944)
  • "Profiler v11; No man init" (#6087)
  • "Refactoring Map.ItemsSource to use NotifyCollectionChangedEventArgsEx…" (#5689)
  • "Remove Xamarin.Android.Support.v7.MediaRouter" (#5941)
  • "Update BottomNavigationViewUtils.cs: removing redundant Dispose() calls" (#5298)

Known Issues

  • Github #6749 - "[Bug] Reduced font sizes with Xamarin.Forms 4.1.0.555618"
  • Github #6648 - "[Bug] x:DataType do NOT accept markup extensions"
  • Github #6261 - "[Bug] FlyoutBehavior not working Xamarin 4 release"
  • Github #6259 - "[Bug] [Android] TabbedPage overrides Entry values when more than 4 Pages are added"
  • Github #6247 - "[Bug] NullReference Exception: Grid.MeasureGrid (Android)"
  • Github #6188 - "[Bug] Visual Material, does not fill the fields with the right indexes"
  • Github #6106 - "Rework LogicalChildren on Element to better represent visual vs logical children"
  • Github #6019 - "Renderer not found exception occurs on Version 3.6.0"
  • Github #5987 - "[Bug] Shell cannot style toolbar items "
  • Github #5601 - "CollectionView SelectedItem TwoWay Binding not working"
  • Github #5382 - "The Xamarin.Forms.CarouselView crashes inside a ListView in iOS only"
  • Github #5366 - "Android + Visual + Focus is wonky"
  • Github #5354 - "[CollectionView] Updating the ItemsLayout type should refresh the layout"
  • Github #5041 - "Xamarin.Forms 4.0 Pre2 CollectionView.EmptyView cannot arrange content in center."
  • Github #3678 - "[Xaml] Fixes including ResourceDictionary from another ResourceDictionary"

Breaking Changes

  • "[Android] Fixed applying effects to Frames" (#6412) (added in 4.1.0.555618 (4.1.0))
  • "[Tizen]Add Material Style Renderers" (#6204)
  • "Intellisense for CollectionView basic list options" (#6537) (added in 4.1.0.555618 (4.1.0))
  • Github #4658 - "[CollectionView, UWP] Updating items shows white rows" (#6465) (added in 4.1.0.555618 (4.1.0))
  • Github #5204 - "[Feedback] Xamarin Forms on macOS requires a Width and HeightRequest" (#5600)
  • Github #5252 - "iOS: Color of Editor Placeholder is different than Entry" (#5259)
  • Github #5330 - "[XamlC] Error should be thrown when x:DataType="{x:Type XXX}" is specified in XAMLC" (#5335)

Namespace Xamarin.Forms

Type Changed: Xamarin.Forms.ListItemsLayout

Removed fields:

-public static IItemsLayout HorizontalList;
-public static IItemsLayout VerticalList;

Namespace Xamarin.Forms.Platform.Android.AppCompat

Type Changed: Xamarin.Forms.Platform.Android.AppCompat.FrameRenderer

Removed interface:

-Xamarin.Forms.IEffectControlProvider

Namespace Xamarin.Forms.Platform.Android.FastRenderers

Type Changed: Xamarin.Forms.Platform.Android.FastRenderers.FrameRenderer

Removed interface:

-Xamarin.Forms.IEffectControlProvider

Namespace Xamarin.Forms.Platform.MacOS

Type Changed: Xamarin.Forms.Platform.MacOS.ImageRenderer

Modified base type:

-Xamarin.Forms.Platform.MacOS.ViewRenderer`2[Xamarin.Forms.Image,AppKit.NSView]
+Xamarin.Forms.Platform.MacOS.ViewRenderer`2[Xamarin.Forms.Image,AppKit.NSImageView]

Namespace Xamarin.Forms.Platform.Tizen

Type Changed: Xamarin.Forms.Platform.Tizen.ButtonRenderer

Modified base type:

-Xamarin.Forms.Platform.Tizen.ViewRenderer`2[Xamarin.Forms.Button,Xamarin.Forms.Platform.Tizen.Native.Button]
+Xamarin.Forms.Platform.Tizen.ViewRenderer`2[Xamarin.Forms.Button,ElmSharp.Button]

Type Changed: Xamarin.Forms.Platform.Tizen.EntryRenderer

Modified base type:

-Xamarin.Forms.Platform.Tizen.ViewRenderer`2[Xamarin.Forms.Entry,Xamarin.Forms.Platform.Tizen.Native.Entry]
+Xamarin.Forms.Platform.Tizen.ViewRenderer`2[Xamarin.Forms.Entry,ElmSharp.Entry]

Type Changed: Xamarin.Forms.Platform.Tizen.FrameRenderer

Modified base type:

-Xamarin.Forms.Platform.Tizen.ViewRenderer`2[Xamarin.Forms.Frame,Xamarin.Forms.Platform.Tizen.Native.Canvas]
+Xamarin.Forms.Platform.Tizen.LayoutRenderer

Type Changed: Xamarin.Forms.Platform.Tizen.KeyboardExtensions

Removed method:

-public static void UpdateKeyboard (this Native.Entry control, Xamarin.Forms.Keyboard keyboard, bool isSpellCheckEnabled, bool isTextPredictionEnabled);

Namespace Xamarin.Forms.Platform.UWP

Type Changed: Xamarin.Forms.Platform.UWP.ItemContentControl

Modified base type:

-Windows.UI.Xaml.Controls.UserControl
+Windows.UI.Xaml.Controls.ContentControl

Removed method:

-protected override Windows.Foundation.Size ArrangeOverride (Windows.Foundation.Size finalSize);

API Changes

See all API Changes here.

  • "[Maps] Add MapClicked event" (#5317)
  • "[Tizen]Add Material Style Renderers" (#6204)
  • "Intellisense for CollectionView basic list options" (#6537) (added in 4.1.0.555618 (4.1.0))
  • "Map with ItemTemplateSelector" (#5226)
  • "Unhook Page from embedded Application on disposal" (#6735) (added in 4.1.0.581479 (4.1.0 Service Release 1))
  • Github #4658 - "[CollectionView, UWP] Updating items shows white rows" (#6465) (added in 4.1.0.555618 (4.1.0))
  • Github #5204 - "[Feedback] Xamarin Forms on macOS requires a Width and HeightRequest" (#5600)

Blogs

Xamarin Blogs

Thank you

Thank you to our community for helping to make Xamarin.Forms even better!

This release, we received amazing contributions from these individuals. Give them a big round of applause!

Author Commit PR
Akihiko Odaki (@akihikodaki) [XamlC] Fix message for unresolved event handler reference in DataTemplate (#5502) #5502
Akihiko Odaki (@akihikodaki) [Xaml] Throw XamlParseException when a duplicate property is detected (#5558) #5558
Akihiko Odaki (@akihikodaki) [Xaml[C]] Allow to connect to static event handler (#5119) #5119
Akihiko Odaki (@akihikodaki) [Xaml[C]] Allow to connect to event handler with overloads (#5118) #5118
Andrei (@AndreiMisiukevich) fixed crash (#5363) #5363
Andrei (@AndreiMisiukevich) macOs: fixes NRE in during entryRenderer disposing (#5914) #5914
Andrei (@AndreiMisiukevich) [Android] Fixed applying effects to Frames (#6412) #6412
Andrei Nitescu (@andreinitescu) iOS: Color of Editor Placeholder is different than Entry (#5259) fixes #5252 #5259
Andrei Nitescu (@andreinitescu) Map with ItemTemplateSelector (#5226) #5226
Andrei Nitescu (@andreinitescu) Refactoring Map.ItemsSource to use NotifyCollectionChangedEventArgsExtensions (#5689) #5689
Andrei Nitescu (@andreinitescu) Templated view GetTemplateChild(string) (#5691) #5691
Andrei Nitescu (@andreinitescu) iOS: Setting FormattedText doesn't use TextDecorations (#5803) #5803
Andrei Nitescu (@andreinitescu) Don't reset implicit style (#6641) (#6641) #6641
Andres G. Aragoneses (@knocte) [Core] Add some Device.InvokeOnMainThread helpers (#5028) #5028
Brian Macomber (@bmacombe) [UWP]Fixes #3886, Master Detail, incorrect master height after window resize (#5338) #5338
Carbaholic (@Carbaholic) Fixes _child.Element null reference exception (#5756) #5756
Emil Alipiev (@EmilAlipiev) DetectPlatform Fixed for UWP (#5182) fixes #4852 #5182
Gabor Nemeth (@gabor-nemeth) [macOS] enhance menu (#4718) #4718
inforithmics (@inforithmics) fixes BindableLayout DataTemplate - XamlC #5486 (#6178) #6178
jaytilly (@jaytilly) Fix for layouts in a cell to expand on resize (WPF) Issue #5682 (#6179) #6179
jcmanke (@jcmanke) Set ImeOptions to Done on Android Editor (#5653) #5653
jcmanke (@jcmanke) [Maps] Add MapClicked event (#5317) #5317
jcmanke (@jcmanke) Changed error message when Map.ItemTemplate is a DataTemplateSelector to direct the user to the ItemTemplateSelector property (#5944) #5944
Johannes Egger (@johannesegger) WpfHelper.FindChildren: Pass forceUsingTheVisualTreeHelper to recursive calls. (#5922) #5922
Kangho Hur (@rookiejava) [Material] [Tizen] Adds Xamarin.Forms.Material.Tizen for Visual (#5453) #5453
Kangho Hur (@rookiejava) [Tizen] Support new Named Font Sizes for Tizen (#6113) #6113
Kangho Hur (@rookiejava) [Tizen] Add TFM identifier and version explictly for vs2019 16.1 (#6304) #6304
Kangho Hur (@rookiejava) [Tizen] Added support AutomationProperties (#6080) #6080
Kevin Petit (@kvpt) [Android] Fix old root page dispose when main page change (#4707) Fixes #4706 Fixes #4325 #4707
Kevin Petit (@kvpt) [Android] Dispose the collection view item adapter (#6525) #6525
kicsiede (@kicsiede) Cellrenderer leak fixes + test (#5655) fixes #5604 fixes #5603 #5655
kicsiede (@kicsiede) [iOS] Fix: memory leak when Navigation.RemovePage is used (#5695) #5695
Matt Lacey (@mrlacey) Issue4879 ImageButton Padding (UWP) (#5837) #5837
Matt Lacey (@mrlacey) Fix disappearing MasterDetail menu on UWP (#5808) #5808
mkieres (@mkieres) Add B40005 test case (#5912) #5912
Morten Nielsen (@dotMorten) Adds the image resouces iOS and Android gallery apps already had to UWP (#6000) #6000
mtz (@mfkl) [GTK] Fix NavigationBar check for Layout calc (#5506) #5506
mtz (@mfkl) [GTK] Add Alpha support to Frame background (#6092) #6092
Muzib (@mdmozibur) Addresses issue #5854 (#5855) #5855
nels83 (@nels83) [GTK] Fix navigation (#6692) #6692
Oliver Brown (@GalaxiaGuy) Make NSScrollView for NSTableView not draw background, and add test case. (#6050) #6050
PawKanarek (@PawKanarek) Update BottomNavigationViewUtils.cs: removing redundant Dispose() calls (#5298) #5298
Pedro Jesus (@pictos) Create UITest for Bugzilla41619 (#5829) #5829
puppetSpace (@puppetSpace) Create UITest for issue B44476 (#5859) #5859
puppetSpace (@puppetSpace) Add UITest for issue 1763 (#5907) #5907
puppetSpace (@puppetSpace) Created UITest for issue B43527 (#5898) #5898
Seungkeun Lee (@myroot) [Tizen] Fix CarouselPage focus issue (#5483) #5483
Seungkeun Lee (@myroot) [Tizen] Add CollectionView Tizen Renderer (#5364) fixes #3172 #5364
Seungkeun Lee (@myroot) [Tizen] Enhancement CollectionView implementation on Tizen (#6181) #6181
shmin (@shyunMin) [Tizen]Add Material Style Renderers (#6204) #6204
Stanislav (@stanbav) [GTK] Fix Padding/Margin properties of Frame element (#5533) (#5764) #5764
Sunner (@SuNNjek) Implemented ImageButtonRenderer for WPF (#5668) #5668
yourina (@yourina) [Tizen] Support the Keyboard, MaxLength, IsSpellCheckEnabled, IsReadOnly propertyon SearchBarRenderer (#5688) fixes #2902 #5688
yourina (@yourina) Add the ShellRenderer for Tizen (#5818) #5818

Feedback welcome

Your feedback is important to us. If there are any problems with this release, check the Xamarin.Forms Forums and GitHub for existing issues. Report new issues and suggestions on GitHub.

Open Source

Xamarin.Forms 4.1.0 is based on the open-source Xamarin.Forms repository: