Binding on nested class on XAML does not working anymore (update Xamarin.Forms 2.3.4.224)

John75John75 PTMember ✭✭

Binding with nested class doe not working.

I have an class in another assembly like this:

public static class Car
{
    public static class Wheel
    {
        int value = 20;
    }
}

On XAML file:

<?xml version="1.0" encoding="utf-8" ?>
<Grid xmlns="http://xamarin.com/schemas/2014/forms"
   xmlns:LibStatic="clr-namespace:com.car.Lib;assembly=com.car.Lib">

  <Label FontSize="{x:Static LibStatic:Car+Wheel.value}" />

</Grid>

I'm gettting the error "Type Car+Wheel not found in xmlns clr-namespace:com.car.Lib;assembly=com.car.Lib"

Posts

Sign In or Register to comment.