Problem with OnPlatform and UWP

EnricoRossiniEnricoRossini USMember ✭✭✭✭
edited December 2017 in Xamarin.Forms

HI guys,
I have a problem with OnPlatform.

<ToolbarItem x:Name="toolbarSave" Command="{Binding SaveWord}" Order="Primary" Priority="0" Text="Save">
        <OnPlatform x:TypeArguments="FileImageSource" UWP="Images/Save.png" />

The Xamarin.Forms version I'm using is

At Runtime I receive the following error

Cannot assign property "UWP": Property does not exists, or is not assignable, or mismatching type between value and property

UWP Error



  • MulflarMulflar ESUniversity ✭✭
    edited December 2017

    Try with:

    <OnPlatform x:TypeArguments="FileImageSource">
        <On Platform="UWP" Value="Images/Save.png" />
  • EnricoRossiniEnricoRossini USMember ✭✭✭✭

    I don't have the error now. Later I'm checking if UWP shows an image.

Sign In or Register to comment.