吐槽一下wp toolkit ToggleSwitch控件

之前用法:

<toolkit:ToggleSwitch>

   <toolkit:ToggleSwitch.Header>

       <TextBlock Text="23232" Foreground="Blue"></TextBlock>

  </toolkit:ToggleSwitch.Header>

</toolkit:ToggleSwitch>

 

 

不知咋搞,升级非得这样子搞才行,脑残么?Header 居然可以传ojbect 为毛放控件进去不会显示

<toolkit:ToggleSwitch>
                <toolkit:ToggleSwitch.HeaderTemplate>
                    <DataTemplate>
                        <TextBlock Text="23232" Foreground="Blue"></TextBlock>
                    </DataTemplate>
                </toolkit:ToggleSwitch.HeaderTemplate>
</toolkit:ToggleSwitch>

你可能感兴趣的:(switch)