我正在尝试创建仅底部带有边框的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)