0

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

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

按钮包含操作和描述...

4

2 回答 2

0
<Button>
    <StackPanel>
        <TextBlock Text="primary text" />
        <TextBlock Text="Lorem ipsum..." />
    </StackPanel>
</Button>
于 2012-08-05T14:02:00.747 回答
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>

在此处输入图像描述

于 2012-08-05T14:03:34.130 回答