Skip to content

2.3.3

Compare
Choose a tag to compare
@jassmith jassmith released this 21 Nov 12:59
· 16 commits to 2.3.3 since this release

Important notes

  • Xamarin.Forms 2.3.3 depends on a Xamarin installation of Cycle 8. Users upgrading from Xamarin.Forms 2.3.2 (or earlier) will experience numerous compile errors if they attempt to build without first upgrading their Xamarin installation.
  • 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.
  • In 2.3.3 we are deprecating Classic support (More info here).

2.3.3 stable

2.3.3 pre4

Bug Fixes

  • 44338 - "Displaying context action causes ArgumentNullException when another item's context actions are already displayed on iOS10." (PR)
  • "[Win] Toolbar placement works with initial value" (PR)
  • "[Android] SoftInputMode works with initial value" (PR)

2.3.3-pre3

Bug Fixes

  • 44129 - "[Forms Android] Removing and adding items to TabbedPage BindingContext crashes the app when VM uses MvvmLight property Set()-method" (PR)
  • 44166 - "41166 - Fix MasterDetailPage/NavigationPage leaks on iPad" (PR)
  • 44596 - "Grey/Blank Screen when switching MainPage to MasterDetail with TabbedPage" (PR)
  • 45010 - "[2.3.3] 45010 – Forms Sample "WorkingWithListview" throw exception with WinPhone8.1" (PR)
  • 44166 - "MasterDetailPage instances do not get disposed upon GC; instance accumulation crashes app with OOM error using Forms 2.3.2.118-pre1 and AppCompat" (PR)
  • Don't unsubscribe/resubscribe the listener to the same INPC (PR)
  • 44886 - "UWP Listview ItemSelected event triggered twice for each selection" (PR)
  • [iOS] Fixes KVO native binding (PR)
  • Make CreateNativeControl virtual instead of abstract (PR)
  • 43993 - "iOS: ListView size does not return to normal after keyboard disappears" (PR)
  • 39768 - "PanGestureRecognizer sometimes won't fire completed event when dragging very slowly" (PR)
  • 42602 - "Custom BoxView Renderer Does Not Render All Its Children Elements" (PR)
  • [Xaml] Xaml native views and bindings for WP8.1 (PR)
  • [XamlC] Compiled converters (PR)
  • [Xaml] allow compatible arguments for x:Factory (PR)
  • [XAMLC] specify type and default value for native bindings (PR)
  • [2.3.3-pre2] [XamlC] supports enum and consts in x:Static (PR)
  • Reuse Handler when invoking on main thread (PR)

2.3.3-pre2

Nuget package here.

New Features

Support native view declaration in Xaml, and native Bindings

The following Xaml is valid, and works as expected:

<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:ios="clr-namespace:UIKit;assembly=Xamarin.iOS;targetPlatform=iOS"
             xmlns:androidWidget="clr-namespace:Android.Widget;assembly=Mono.Android;targetPlatform=Android"
             xmlns:formsandroid="clr-namespace:Xamarin.Forms;assembly=Xamarin.Forms.Platform.Android;targetPlatform=Android"
             xmlns:win="clr-namespace:Windows.UI.Xaml.Controls;assembly=Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime;targetPlatform=Windows"
       x:Class="Xamarin.Forms.Controls.XamlNativeViews">
    <ContentPage.Content>
        <ios:UILabel Text="{Binding NativeText}" View.HorizontalOptions="Start"/>
        <androidWidget:TextView Text="{Binding NativeText}" x:Arguments="{x:Static formsandroid:Forms.Context}" />
        <win:TextBlock Text="Foo"/>
    </ContentPage.Content>
</ContentPage>
  • native views are automagically wrapped into the appropriate wrapper
  • xmlns defined on a non-matching targetPlatform (see TargetPlatform enumeration) are ignored
  • you can bind to property of native views. A proxy is created on the fly for supporting 2-Way bindings if possible. If the native property doesn't implements INPC, or support Observable (on iOS), or is a DependencyProperty (on UWP), you can pass an UpdateSourceEventName parameter to the binding expression.
  • if you set, or bind to, attached BindableProperty to a native view that will be wrapped in a X.F.View, those property values and binding are transferred to the wrapper. See HorizontalOptions in the sample above.

Platform Specifics

Introducing Platform Specifics! Features or behaviors that apply to one platform only can now be implemented without requiring custom renderers. These new features/behaviors can then be accessed easily via a fluent code API or XAML.

Vendors can easily add their own Platform Specifics by attaching Effects to them (see 63a924d and 1f9482e for complete example).

This feature implements the framework that enables the new API and also includes several examples of platform specific features, which can be previewed using the Platform Specifics gallery page:

  • Blur support for any VisualElement on iOS
  • Translucent navigation bar on iOS
  • Partially collapsed navigation bar (with icons!) on MasterDetailPage on Windows
  • Toolbar placement options on Windows
  • AdjustResize/AdjustPan on Android (known issue: AdjustResize disables status bar color)

Bug Fixes

  • 32733 - "32733 – Switching Activity crash in 1.4.4.6392" (PR)
  • 35132 - "35132 – Pages are not collected when using a Navigationpage"
  • 39768 - "PanGestureRecognizer sometimes won't fire completed event when dragging very slowly" (PR)
  • 39908 - "Back button hit quickly results in jumbled pages" (PR)
  • 41463 - "CarouselView Crashes with "Sequence Does not Contain a Matching Element""
  • 42061 - "App crashes when registering an app link entry with invalid thumbnail url" (PR)
  • 42112 - "42112 - CarouselView throws error on Android while moving"
  • 42341 - "Page not removed from NavigationStack when hit Back quickly on iOS" (PR)
  • 42519 - "Text Truncation in UWP"
  • 42697 - "Slow swipe - System.InvalidOperationException: Sequence contains more than one element [CarouselView]"
  • 43230 - "DisplayAlert returns unexpected value when Escape key hit on UWP" (PR)
  • 43328 - "DisplayActionSheet() double-tap NullReferenceException crash Win8.1" (PR)
  • 43354 - "Button IsEnabled binding is position dependent" (PR)
  • 43450 - "Faulty syntax of Grid.RowDefinition wasn't caught with XamlC"
  • 43516 - "[UWP] Changing FontAttribute on a label to NONE changes font size as well" (PR)
  • 43530 - "[Android] Resuming app throws IllegalStateException from fragment manager"
  • 43726 - "Setting TabbedPage.ItemsSource to Null Causes Crash" (PR)
  • 43774 - "Appearing does not trigger for the first time for Tabpages in Android" (PR)
  • 43892 - "Xamarin.Forms.TabbedPage with FormsAppCompatActivity OnAppearing Troubles"
  • 44056 - "Picker Focused/Unfocused events not fired on iOS 10 preview" (PR)

Other fixes

  • iOS10 fixes

2.3.3-pre1

(Only internal. No public artifacts)