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

Releases: xamarin/Xamarin.Forms

2.3.2-pre2 (really)

17 Aug 17:26
Compare
Choose a tag to compare
2.3.2-pre2 (really) Pre-release
Pre-release
[Android] Fix for NullReferenceException when using the wrong activit…

…… (#286)

* [Android] Fix for NullReferenceException when using the wrong activity type.

On using FormsApplicationActivity or FormsAppCompatActivity as base Activity in a SplashScreen.
A NullReferenceException will be thrown in the KeyboardManager.
Added InvalidOperationException with "Forms.Init()" message instead, if the Forms.Context is null.

* Fixed indentation

2.3.2

31 Aug 05:18
Compare
Choose a tag to compare
[Xaml] Clone node tree on DT, allow markup to be evaluated multiple t…

…imes

2.3.2-pre2

03 Aug 21:25
Compare
Choose a tag to compare
2.3.2-pre2 Pre-release
Pre-release

Important notes

  • When upgrading to Xamarin.Forms 2.3.1 (and future releases), users should upgrade their Xamarin installation to Cycle 7.
  • When upgrading Xamarin.Forms take care not to simply "update all" as that will update the Xamarin.Android.Support packages to an incompatible version. More info here.

2.3.2-pre1

New Features

  • A new feature "Platform Specifics" will appear in 2.3.2-pre2.

Bug Fixes

  • 32033 - "WebView on Windows does not display local HTML files" (PR)
  • 40858 - " SearchBar LongClick Crashes on ListView Header" (PR)
  • 41205 - " Override ListView.CreateDefault, parameter is always string" (PR)
  • 41717 - " Picker allows multiple dialogs to be open causing the app to crash" (PR)
  • 42069 - "42069 - Garbage Collector can not collect pages that use ImageSource as a StaticResource"
  • 42075 - " IllegalStateException - Fragment does not have a view"
  • 42188 - " ViewCell with focus does not recognise being tapped using keyboard on UWP" (PR)
  • 42254 - "42254 - Getting error in Forms Previewer when user open the "HomePage.Xaml" of EffectDemo Sample" (PR)
  • 42326 - " Setting ActvityIndicator.Color Does Not Work Below Lollipop" (PR)
  • 42329 - " ListView in Frame and FormsAppCompatActivity Memory Leak"
  • 42557 - " [Android/AppCompat] Back button is not hidden/show when using NavigationPage.SetHasBackButton after navigation" (PR)
  • 42580 - " Forms.ListView crashes when ItemSource has item removed and another inserted" (PR)
  • 42687 - " Picker IsFocused property and Focused events broken on Android" (PR)
  • 42812 - " [Android] Color.Accent is hardcoded" (PR)

Other Fixes

  • Known issues with BarTextColor on Windows (PR)
  • Windows image loader error handling (PR)

2.3.1

02 Aug 22:00
Compare
Choose a tag to compare

Important notes

  • When upgrading to Xamarin.Forms 2.3.1, users should upgrade their Xamarin installation to Cycle 7.
  • When upgrading Xamarin.Forms take care not to simply "update all" as that will update the Xamarin.Android.Support packages to an incompatible version. More info here.

2.3.1-stable

No changes since 2.3.1-pre3

2.3.1-pre3

Bug Fixes

  • 42074 - " TimePicker doesn't lose focus on Cancel" (PR)
  • 42352 - "[iOS] Xamarin.Forms 2.3.1.111-pre2 does not work with linker" PR 251
  • 42361 - "DatePicker crash on Android 4.4.2 Tablet after dialog is closed" PR 249

Other Fixes

  • [Android] Handle creating a default GroupHeader if no GroupHeaderTemplate is provided (PR)
  • Restore incorrectly renamed InvalidateMeasure method

#2.3.1-pre2

##Bugs Fixed

  • Bug 42277 - "DataTemplate System.InvalidCastException crash in 2.3.1-pre1"

Other Fixes

  • Regression on the height of a cell using UnevenRows on IOS.
  • Issues when using DataTemplateSelector

2.3.1-pre1

New Features

  • Added KeyboardFlags.None enum value and added Keyboard.Plain which uses KeyboardFlags.None for its implementation.
  • Added GridLength.Star as a convenience value to complement the existing GridLength.Auto

Bugs Fixed

  • 27417 - "Button.Image behaviors differently on each platform and has extra padding even with no Text" Fix: When an image and no text is specified for an image, the image position should default to centered (vertically and horizontally). This fixes a bug in the Android logic which leaves images aligned near the top of the button when the button is sufficiently taller than the image.
  • 31809 - "PopToRootAsync isn't working in my Windows Phone Runtime(8.1) project" Fix: When callingPopToRootAsync on 8.1/UWP, the navigation stack was being cleared, but the current page wasn't actually being set, so a crash would subsequently occur if attempting to call it again, for example. This was due to a missing event handler on the NavigationPageRenderer which sets the page to the expected root.
  • 33507 - "Android: "System.ArgumentException: 'jobject' must not be IntPtr.Zero" when setting Focus for Picker = True" Fix: ViewRenderer failed to unsubscribe from FocusChangeRequested on disposed and so attempted to dispatch a focus change request to a disposed renderer.
  • 36447 - "[Android] PinchGestureRecognizer Only Works on Android API Level 19+" Fix: Fix usage of a API18 only constructor on ScaleGestureDetector
  • 36662 - "MasterDetail.Detail not rendering controls properly when using Maps inside TabbedPage"
  • 37862 - "ListView with CachingStrategy=recycleElement Doesn't respect HasUnevenRows=True " Fix: Don't use the fixed LayoutConstraint when using uneven rows. We were using a fixed LayoutConstraint for the viewcell view, this caused Grid't using '*' (star) to skip computing the size of it's children and returning the cached value.
  • 38284 - "when creating a map in iOS, if the map is not visible when the page is created the zoom level is off" Fix: Update the current region of the MKMapView when visible. If the iOS MKMapView is invisible it will update it's region because there's no Frame/Bounds for calculation. We need to make sure we update the current region when the map is visible again.
  • 39187 - "UWP Navigation shows duplicate page when performing multiple nav operations"
  • 39486 - "HasUnevenRows=true ignored in Forms iOS project in TableView with CustomCell; row heights are not auto-sized"
  • 39802 - "Gap between ListView cells even if SeparatorVisablity is set to none"
  • 40005 - "[Android] Navigation Bar back button does not show when using InsertPageBefore(insertedPage, page1) to add a page to the stack before the first page."
  • 40333 - "[Android] IllegalStateException: Recursive entry to executePendingTransactions"
  • 40639 - "Xamarin.Forms 2.1.0.6529 (Android only). Unhandled Exception: Java.Lang.IllegalStateException: Recursive entry to executePendingTransactions when switching MainPage or children of TabbedPage in FormsAppCompatActivity"
  • 40704 - "Strange duplication of listview headers when collapsing/expanding sections"
  • 40740 - "UWP Platform constructor throws TypeLoadException." Modified calls to ApiInformation.IsTypePresent() in WinRT Platform.cs to compile and run when theStatusBar type is not present.
  • 40830 - "AppLinkEntry.KeyValues collection is always empty"
  • 40866 - "RegisterLink throws an ArgumentException on Android"
  • 40955 - "Memory leak with FormsAppCompatActivity and NavigationPage"
  • 40998 - "Hitting Esc when an action sheet displayed on UWP does not result in the await returning" Fix: On UWP, when DisplayActionSheet is being awaited, pressing escape while the ActionSheet is visible would cause it to disappear but not actually return any result. Checking for an escape keypress in the window and setting the result to ContentDialogResult.None (as no button was tapped) returns a result as expected.
  • 41038 - "MasterDetailPage loses menu icon on iOS after reusing NavigationPage as Detail" Fix: When a page is being removed we need to make sure we update the left toolbar item to show the master icon or text. We need to pas a reference of the remove page, because the NavigationPage still has that page in the navigation stack, the event fires on the renderer before it's removed from the internal children.
  • 41076 - "App Resume hangs on WP 8.1 (Silverlight)"
  • 41078 - " [Win 8.1] ListView not visually setting the initially selected item upon creation" Fix: On Windows 8.1, when the SelectedItem property on a ListView was set prior to the page it was contained in displaying, there was no indication of that item being selected (although the value was set) when the page eventually displayed. This is normally indicated via a background color on the cell. Subsequent selections of other items would cause the visual indication to work as expected. Explicitly calling OnElementItemSelected in OnElementChanged if the SelectedItem value has been set resolves this.
  • 41241 - "Custom Button Image Missized in Xamarin Forms Cross-platform in the WinPhone App" Fix: Previously, the Windows platforms hard-coded the size of button images to 30x30; this meant that larger images on buttons could not be displayed and smaller images were scaled up. This change removes the hard-coded size and uses the actual size of the image when laying out the button.
  • 41296 - "MarkupExtension not found in default namespace"
  • 41404 - "Xamarin Forms Master Page (of Master Detail Page) obscures Android status bar with Material Design"
  • 41424 - "DatePicker doesn't lose focus on Cancel"
  • 41842 - "Set MasterDetailPage.Detail = New Page() twice will crash the application when set MasterBehavior = MasterBehavior.Split" Fix: MasterDetailControl will no longer null out the TCS before it is used. Failure only occurs when the MainPage is swapped out and the Detail page is changed twice. UI test doesn't cover this scenario.
  • 41854 - "[UWP] NavigationPage back button remains when resetting Application.Curent.MainPage to ContentPage"

Other fixes

  • [Android] Isolate fragment management for children of MasterDetailPage
  • [Android] Can't reset BarTextColor to default on TabbedPage. Fix: storing default color for TabbedPage bar text on Android so we can reset it if necessary.
  • [Android] Fix android StartTimer race condition. This fixes the GREF issue reported by the Android team against Cycle 7
  • [iOS] Set the frame of a cell NativeView using the calculated positions and size
  • [iOS] Rotation and orientations methods now correctly forwarded in iOS. Allows programmatic rotation locking of screen.
  • [UWP] Make wrapper of a ViewCell respect margins
  • [WinRT/UWP] Center crop image on AspectFill to provide same experience that Android and iOS curently provide.
  • [WinRT] Add base platform as inner proxy navigation to Application, Fix back button issue [see 39187, 41854]
  • [XAML] fix Thickness.IsDefa...
Read more

2.3.1-pre3

13 Jul 10:03
Compare
Choose a tag to compare
2.3.1-pre3 Pre-release
Pre-release

Bug Fixes

  • 42352 - "[iOS] Xamarin.Forms 2.3.1.111-pre2 does not work with linker" PR 251
  • 42361 - "DatePicker crash on Android 4.4.2 Tablet after dialog is closed" PR 249

Other Fixes

  • Fix issues with GroupHeader on Android using RecycleElement strategy [PR 248](xamarin/Xamarin.Forms: Pull Request 248)
  • Restore incorrectly renamed InvalidateMeasure method

2.3.1-pre2

02 Jul 18:53
Compare
Choose a tag to compare
2.3.1-pre2 Pre-release
Pre-release

2.3.1-pre2

Important notes

When upgrading to Xamarin.Forms 2.3.1-pre2 and the next releases users should upgrade there Xamarin installation to Cycle 7.

Bugs Fixed

Other Fixes

  • Regression on the height of a cell using UnevenRows on IOS.
  • Issues when using DataTemplateSelector

2.3.0 Hotfix 1

28 Jun 12:07
Compare
Choose a tag to compare

Bugs Fixed

  • 41980 - TabBar BarTintColor no longer working in 2.3.0.49"
  • 42032 - UINavigationBar.Appearance.BarTintColor changes Tab bar color"

Other Fixes

Fix build issues with Cycle 6

2.3.1-pre1

28 Jun 12:08
Compare
Choose a tag to compare
2.3.1-pre1 Pre-release
Pre-release

2.3.1-pre1

Important notes

When upgrading Xamarin.Forms take care not to simply "update all" as that will update the Xamarin.Android.Support packages to an incompatible version. More info here.

New Features

  • Added KeyboardFlags.None enum value and added Keyboard.Plain which uses KeyboardFlags.None for its implementation.
  • Added GridLength.Star as a convenience value to complement the existing GridLength.Auto

Bugs Fixed

  • 27417 - "Button.Image behaviors differently on each platform and has extra padding even with no Text" Fix: When an image and no text is specified for an image, the image position should default to centered (vertically and horizontally). This fixes a bug in the Android logic which leaves images aligned near the top of the button when the button is sufficiently taller than the image.
  • 31809 - "PopToRootAsync isn't working in my Windows Phone Runtime(8.1) project" Fix: When callingPopToRootAsync on 8.1/UWP, the navigation stack was being cleared, but the current page wasn't actually being set, so a crash would subsequently occur if attempting to call it again, for example. This was due to a missing event handler on the NavigationPageRenderer which sets the page to the expected root.
  • 33507 - "Android: "System.ArgumentException: 'jobject' must not be IntPtr.Zero" when setting Focus for Picker = True" Fix: ViewRenderer failed to unsubscribe from FocusChangeRequested on disposed and so attempted to dispatch a focus change request to a disposed renderer.
  • 36447 - "[Android] PinchGestureRecognizer Only Works on Android API Level 19+" Fix: Fix usage of a API18 only constructor on ScaleGestureDetector
  • 37862 - "ListView with CachingStrategy=recycleElement Doesn't respect HasUnevenRows=True " Fix: Don't use the fixed LayoutConstraint when using uneven rows. We were using a fixed LayoutConstraint for the viewcell view, this caused Grid't using '*' (star) to skip computing the size of it's children and returning the cached value.
  • 38284 - "when creating a map in iOS, if the map is not visible when the page is created the zoom level is off" Fix: Update the current region of the MKMapView when visible. If the iOS MKMapView is invisible it will update it's region because there's no Frame/Bounds for calculation. We need to make sure we update the current region when the map is visible again.
  • 39187 - "UWP Navigation shows duplicate page when performing multiple nav operations"
  • 39486 - "HasUnevenRows=true ignored in Forms iOS project in TableView with CustomCell; row heights are not auto-sized"
  • 39802 - "Gap between ListView cells even if SeparatorVisablity is set to none"
  • 40005 - "[Android] Navigation Bar back button does not show when using InsertPageBefore(insertedPage, page1) to add a page to the stack before the first page."
  • 40333 - "[Android] IllegalStateException: Recursive entry to executePendingTransactions"
  • 40639 - "Xamarin.Forms 2.1.0.6529 (Android only). Unhandled Exception: Java.Lang.IllegalStateException: Recursive entry to executePendingTransactions when switching MainPage or children of TabbedPage in FormsAppCompatActivity"
  • 40704 - "Strange duplication of listview headers when collapsing/expanding sections"
  • 40740 - "UWP Platform constructor throws TypeLoadException." Modified calls to ApiInformation.IsTypePresent() in WinRT Platform.cs to compile and run when theStatusBar type is not present.
  • 40830 - "AppLinkEntry.KeyValues collection is always empty"
  • 40866 - "RegisterLink throws an ArgumentException on Android"
  • 40998 - "Hitting Esc when an action sheet displayed on UWP does not result in the await returning" Fix: On UWP, when DisplayActionSheet is being awaited, pressing escape while the ActionSheet is visible would cause it to disappear but not actually return any result. Checking for an escape keypress in the window and setting the result to ContentDialogResult.None (as no button was tapped) returns a result as expected.
  • 41038 - "MasterDetailPage loses menu icon on iOS after reusing NavigationPage as Detail" Fix: When a page is being removed we need to make sure we update the left toolbar item to show the master icon or text. We need to pas a reference of the remove page, because the NavigationPage still has that page in the navigation stack, the event fires on the renderer before it's removed from the internal children.
  • 41076 - "App Resume hangs on WP 8.1 (Silverlight)"
  • 41078 - " [Win 8.1] ListView not visually setting the initially selected item upon creation" Fix: On Windows 8.1, when the SelectedItem property on a ListView was set prior to the page it was contained in displaying, there was no indication of that item being selected (although the value was set) when the page eventually displayed. This is normally indicated via a background color on the cell. Subsequent selections of other items would cause the visual indication to work as expected. Explicitly calling OnElementItemSelected in OnElementChanged if the SelectedItem value has been set resolves this.
  • 41241 - "Custom Button Image Missized in Xamarin Forms Cross-platform in the WinPhone App" Fix: Previously, the Windows platforms hard-coded the size of button images to 30x30; this meant that larger images on buttons could not be displayed and smaller images were scaled up. This change removes the hard-coded size and uses the actual size of the image when laying out the button.
  • 41296 - "MarkupExtension not found in default namespace"
  • 41404 - "Xamarin Forms Master Page (of Master Detail Page) obscures Android status bar with Material Design"
  • 41424 - "DatePicker doesn't lose focus on Cancel"
  • 41842 - "Set MasterDetailPage.Detail = New Page() twice will crash the application when set MasterBehavior = MasterBehavior.Split" Fix: MasterDetailControl will no longer null out the TCS before it is used. Failure only occurs when the MainPage is swapped out and the Detail page is changed twice. UI test doesn't cover this scenario.
  • 41854 - "[UWP] NavigationPage back button remains when resetting Application.Curent.MainPage to ContentPage"

Other fixes

  • [Android] Isolate fragment management for children of MasterDetailPage
  • [Android] Can't reset BarTextColor to default on TabbedPage. Fix: storing default color for TabbedPage bar text on Android so we can reset it if necessary.
  • [Android] Fix android StartTimer race condition. This fixes the GREF issue reported by the Android team against Cycle 7
  • [iOS] Set the frame of a cell NativeView using the calculated positions and size
  • [iOS] Rotation and orientations methods now correctly forwarded in iOS. Allows programmatic rotation locking of screen.
  • [UWP] Make wrapper of a ViewCell respect margins
  • [WinRT/UWP] Center crop image on AspectFill to provide same experience that Android and iOS curently provide.
  • [WinRT] Add base platform as inner proxy navigation to Application, Fix back button issue [see 39187, 41854]
  • [XAML] fix Thickness.IsDefault. Bottom was ignored
  • Isolate fragment management for children of MasterDetailPage. If an AppCompat MasterDetailPage hosts NavigationPages or TabbedPages in either the Master or Detail sections, those pages are now wrapped in their own Fragment (and use that Fragment's ChildFragmentManager) to isolate their Fragment management operations and avoid recursive entry into the executePendingTransactions() method. Also fixed a disposal bug in the custom MDP renderer in Control Gallery. [see 40333, 40639]
  • Implemented the AppIndexProvider on non-AppCompact backend to fix bug on KeyValues on AppLinkEntry [see 40866, 40830]
  • Backend renderers now implement the correct position and size of the View of a ViewCell
  • Allow Registrar.RegisterAll to be invoked multiple times without causing exception
  • Data Pages docs added
  • Numerous small doc fixes
  • Added Mailing List info to the README.md

For full details on changes: [https://github.com/xamarin/Xamarin.Forms/compare/2.3.0...beta-2.3.1-pre1]

2.3.0

16 Jun 15:12
Compare
Choose a tag to compare

Bug fixes

36447 - PinchGestureRecognizer Only Works on Android API Level 19+

Other fixes

Fixed build issues

#2.3.0-pre3

News

In parallel to this "-pre3" release, Xamarin.Forms.CarouselView 2.3.0-pre1 was also shipped. As the CarouselView's version suggests, it has a dependency on Xamarin.Forms 2.3.0 ("-pre3" or greater).

Bug fixes

40830 - AppLinkEntry.KeyValues collection is always empty
40844 - [Android] Forms Android app gets stuck with GC bridge calls when using current beta branch of Xamarin.Android/Mono Runtime
40866 -[Android] RegisterLink throws an ArgumentException on Android

Other changes

Internals visible for CarouselView

#2.3.0-pre2

News

Pages

Adding AzureDataSource support by introducing Xamarin.Forms.Pages.Azure nuget.

#2.3.0-pre1

New Features

Data Pages

Xamarin.Forms DataPages are available as a preview for customers to try and provide feedback. The preview is available in the Xamarin.Forms.Pages nuget package. DataPages provide an API to quickly and easily bind a data source to pre-built views that can be styled with Themes.

Themes

Xamarin.Forms Themes are available as a preview for customers to try and provide feedback. A theme is added to a Xamarin.Forms application by including the Xamarin.Forms.Theme.Base Nuget package, plus either an additional package that defines a specific theme (eg. Xamarin.Forms.Theme.Light) or a locally defined theme.

URL Navigation

Deep link directly to any page within your Xamarin.Forms app with URL Navigation.

In order to avoid adding a dependency on GooglePlayServices to the Xamarin.Forms core package, we've created a new Xamarin.Forms.AppLinks nuget package that will be required for this feature to work on the Android platform.

Embedded Native Controls

Embed custom Xamarin.iOS and Xamarin.Android controls in Xamarin.Forms applications.

Other New Features

  • Multiple shared resource dictionaries with implicit styles and/or dynamic resources are now supported
  • Can now set the background and text color of the Tab bar on TabbedPage.
  • Known Issues:
  • [WinRT, WinPhone 8.1, UWP] Setting BarTextColor does not currently work.
  • [WinPhone 8.1, UWP] If the TabbedPage contains a NavigationPage, the BarBackgroundColor and BarTextColor for the NavigationPage takes precedence
  • [WinPhone 8.1] If the TabbedPage contains a NavigationPage, switching between tabs may cause the background color to be lost.
  • [Android] Cannot set BarTextColor back to default after changing it to a non-default color.
  • Can now set TextColor on Picker, TimePicker, DatePicker.

Bugs Fixed

  • 23942 - Cannot bind properties in BindableObjects added to static resources in XAML
  • 33135 - Apps built for Windows 8.1 using XF, fail on Windows 10 release, with System.NotImplementedException
  • 35529 - WebView.Eval throwing a NotImplementedException on WP8.1 (WinRT) (XF 1.5.1.6471)
  • 36374 - Xamarin.Forms.Platform.UWP.TabbedPageRenderer.OnElementChanged is not virtual
  • 36955 - [iOS] ViewCellRenderer.UpdateIsEnabled Object reference not set to an instance of an object
  • 39636 - Cannot use XamlC with OnPlatform in resources, it throws System.InvalidCastException
  • 39847 - Using MasterDetailPage class as a ExportRenderer does not load in Android
  • 39963 - iOS WebView has wrong scrolling size when loading local html content with images
  • 40096 - Invalid Cast Exception when setting SearchBar Command
  • 40185 - [UWP] ContentPage does not have proper right bounds in landscape

Other Fixes

  • [Android] Fixed issue where accessing Device.IsInvokeRequired on Android resulted in a race condition and possible crash.
  • [Android] Fixed potential crash when styling application
  • [iOS] Fixed issue with WebView dispose and resizing

Important notes

2.2.0 Hotfix 1

27 May 17:34
Compare
Choose a tag to compare

Bug fixes

39821 -[iOS] ViewCellRenderer.UpdateIsEnabled Object reference not set to an instance of an object .
40844 - [Android] Forms Android app gets stuck with GC bridge calls when using current beta branch of Xamarin.Android/Mono Runtime