The switch control should have a Text property alongside all possible customizations of a Label control
Currently this is how I implement my switch with information.
<StackLayout Orientation="Horizontal">
<Switch x:Name="SendConfirmationEmailCheck" />
<Label Text="Send me a confirmation email" Style="{DynamicResource EntryLabelStyle}" />
</StackLayout>
It would be nice to have something like
<Switch x:Name="SendConfirmationEmailCheck" Text="Send me a confirmation email" TextStyle="{DynamicResource EntryLabelStyle}"/>
In C#, the declaration would be something like
var SendConfirmationEmailCheck=new Switch(){Text="Send me a confirmation email"};
eg UWP has two properties for the switch text, with On and Off values. Might as well use a similar pattern here.
I agree. There needs to be an On and Off text property.
Plus one for this also should be easier to changed the color and height and width of the switch.
I understand the need here, but here's what bothers me:
So I don't see us providing a control, backed with platform renderers for this. Instead, I think this should be implemented using TemplatedView, aggregating a Label and a switch. This way, the layout will be modifiable by switching the ControlTemplate.
If someone wants to give it a try, that would be the first templated control we might end up merging...
Any progress?