Alan2
Alan2

Reputation: 24572

Can I pass Android styles in parameters with Xamarin.Forms XAML

Is there a way (without using a renderer) that I can set styling for Android switches in a way like this:

<Switch android:colorControlActivated="#FF00FF" 
 HorizontalOptions="End" VerticalOptions="Center" 
 IsToggled="{Binding PbSwitch}" />

Upvotes: 0

Views: 57

Answers (1)

Dmitry Zinoviev
Dmitry Zinoviev

Reputation: 588

No. It is shared logic, you can't use platform spec staff there without abstraction. Why does renderer not suit you?

Upvotes: 1

Related Questions