小编eiv*_*eiv的帖子

WPF边框厚度仅底部

我正在尝试创建仅底部带有边框的WPF按钮,其余部分将隐藏。我尝试使用borderthickness =“ 0,0,0,1”,但是它不起作用..这是我的代码。

<Button Background="Transparent" BorderThickness="0,0,0,1" BorderBrush="Transparent"  Width="235" Padding="5" FlowDirection="LeftToRight">
<StackPanel Orientation="Horizontal" Width="260">
<Image Source="Images/room-32.png" Height="20" Margin="30,0,8,0"/>
<TextBlock Width="200">Station Maintenance</TextBlock>
</StackPanel>
</Button>
Run Code Online (Sandbox Code Playgroud)

wpf xaml button

0
推荐指数
1
解决办法
9618
查看次数

标签 统计

button ×1

wpf ×1

xaml ×1