I have:
<ContentPage.ToolbarItems>
<ToolbarItem Text="{Binding [AddPhoto]}" Command="{Binding AddNewPhotoCommand}" Order="Primary" x:TypeArguments="FileImageSource" Icon="{OnPlatform iOS='photo.png', UWP='Assets/photo.png'}"/>
</ContentPage.ToolbarItems>
and I got:
Type ToolbarItem not found in xmlns http://xamarin.com/schemas/2014/forms
If I remove entire part after x:TypeArguments="FileImageSource"
mean
<ToolbarItem Text="{Binding [AddPhoto]}" Command="{Binding AddNewPhotoCommand}" Order="Primary"/>
then is fine, no error.
I upgraded project to Xamarin 3.3.0 and I changed from
<ToolbarItem Text="{Binding [AddPhoto]}" Command="{Binding AddNewPhotoCommand}" Order="Primary" >
<ToolbarItem.Icon>
<OnPlatform x:TypeArguments="FileImageSource">
<On Platform="iOS" Value="photo.png"/>
<On Platform="UWP" Value="Assets/photo.png"/>
</OnPlatform>
</ToolbarItem.Icon>
</ToolbarItem>
to
<ToolbarItem Text="{Binding [AddPhoto]}" Command="{Binding AddNewPhotoCommand}" Order="Primary" x:TypeArguments="FileImageSource" Icon="{OnPlatform iOS='photo.png', UWP='Assets/photo.png'}"/>
Why ?
I don't have typo or something like that.