I can't get the ToggleSwitch control to appear in my Windows Phone app. The code I'm trying to use is:
<toolkit:ToggleSwitch Header="ToggleSwitch" Height="111" HorizontalAlignment="Left" Margin="7,397,0,0" Name="toggleSwitch1" VerticalAlignment="Top" Width="456" />
or
<controls:ToggleSwitch Header="Test">
<controls:ToggleSwitch.HeaderTemplate>
<DataTemplate>
<ContentControl Content="{Binding}" Foreground="Red"/>
</DataTemplate>
</controls:ToggleSwitch.HeaderTemplate>
</controls:ToggleSwitch>
Neither of which work, and I can't figure out why. It's a C# app that I'm working with.
I think it has to bea Silverlight app for this to work. Not sure why. I just used a checkbox instead.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.