I have the WP7 toolkit and am using the toggle switch.
At the moment it displays On or Off.
I know you can customise it using the the content template and the sample code supplied with the tookit shows just that, but it I can't find a way of changine On/Off to something else.
I want to display Yes and No.
I created my own value converter that was bound to the same boolean property on my view model as IsChecked. So on the view it looked like:
<toolkit:ToggleSwtich IsChecked="{Binding Completed}" Content="{Binding Completed, Converter={StaticResource YesNoConverter}" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With