xaml - WPF Border thickness bottom only.. -


I'm just trying to create WPF buttons with the range below and hide the rest. I try to use borderthickness = "0,0,0,1" but this does not work. This is my code.

   & lt; TextBlock Width = "200" & gt; Station Maintenance & lt; / TextBlock & gt; & Lt; / StackPanel & gt; & Lt; / Button & gt;     

This is because BorderBrush is < Code> is set to transparent . Assign a color for it.

  & lt; Button background = "transparent" border area = "0,0,0,1" borderbrush = "black" width = "235" padding = "5" FlowDirection = "LeftToRight" & gt; & Lt; StackPanel Orientation = "Horizontal" width = "260" & gt; & Lt; Image Source = "Images / Rooms -32.png" Height = "20" margin = "30,0,8,0" /> & lt; TextBlock Width = "200" & gt; Station Maintenance & lt; / TextBlock & gt; & Lt; / StackPanel & gt; & Lt; / Button & gt;   

Instead, use

  borderbrowse = "transparent"   

 < Code> Borderbrush = "Black" // You want   

Edit

You want any color to enter your Also visible on hover , , etc. ... Add border element around your button .

  & lt; Border borderbrush = "black" borderTechnication = "0,0,0,1" & gt; & Lt; Button background = "transparent" width = "235" padding = "5" flow direction = "wamertoite" & gt; & Lt; StackPanel Orientation = "Horizontal" width = "260" & gt; & Lt; Image Source = "Images / Rooms -32.png" Height = "20" margin = "30,0,8,0" /> & lt; TextBlock Width = "200" & gt; Station Maintenance & lt; / TextBlock & gt; & Lt; / StackPanel & gt; & Lt; / Button & gt; & Lt; / Border & gt;    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -