XF 3.6 Material Setting in App.Xaml requires default value
#5,733 opened on Mar 28, 2019
Description
I love Xamarin Forms...now on to the bug/feature?...
In my app.xaml I create a Style for ContentPages to apply Material to only iOS pages due to a bug in Android Material in XF 3.6 preventing me from using it in Android for now:
<Style TargetType="ContentPage" ApplyToDerivedTypes="true"> <Setter Property="Visual"> <Setter.Value> <OnPlatform x:TypeArguments="IVisual" iOS="Material" /> </Setter.Value> </Setter> </Style>
Running in Android throws the error:
System.ArgumentException: Value was an invalid value for Visual Parameter name: value
Adding the Default to Android this fixes it, but shouldn't default be default?
<OnPlatform x:TypeArguments="IVisual" iOS="Material" Android="Default" />
Expected Behavior
Default values shouldn't need to be set?
Actual Behavior
Default is required
Basic Information
- Android: 9