开发者

How can i create ToggleButton with image and text?

I want to create ToggleButton that contain image on the center and text on the button.

I try to do it by define new usercontrol - 开发者_如何学Gobut its not good way.

How can i do it on silverlight ?


Try the following:

<ToggleButton>
  <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
    <Image Source="..."/>
    <TextBlock Text="Click me"/>
  </StackPanel>
</ToggleButton>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜