Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Style OnPlatform and DynamicResource

$
0
0

I have defined a style , but I'd like to set the Android and iOS values to a DynamicResource - What's the syntax?

<Style
    TargetType="SearchBar"         ApplyToDerivedTypes="true">
    <Setter Property="BackgroundColor" Value="{OnPlatform Android='White', iOS='#4F8BBF'}"/>
</Style>

Viewing all articles
Browse latest Browse all 89864

Trending Articles