吐槽一下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>

posted @ 2014-01-14 00:39  walleyekneel  阅读(219)  评论(2编辑  收藏  举报