WP7按钮详细说明

时间:2012-08-05 12:57:17

标签: c# windows-phone-7 windows-phone-7.1

创建这样的按钮的最佳方法是什么?

http://i.stack.imgur.com/4SLjJ.png

按钮包含操作和说明...

2 个答案:

答案 0 :(得分:0)

<Button>
    <StackPanel>
        <TextBlock Text="primary text" />
        <TextBlock Text="Lorem ipsum..." />
    </StackPanel>
</Button>

答案 1 :(得分:0)

这样的事情会非常接近

 <Button HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20" Background="Black">
            <Button.Content>
                <Border BorderThickness="3" BorderBrush="White" Margin="5">
                <StackPanel>
                    <TextBlock FontWeight="Bold" Foreground="White" Margin="3">primary text</TextBlock>
                        <TextBlock Foreground="LightGray"
                                   Margin="3">Lorem ipsum dolor sit amet</TextBlock>
                </StackPanel>
                </Border>
            </Button.Content>
        </Button>

给出

enter image description here