Hello, The feature you intend to manipulate can be called two ways.
In Controles
Some controls of WPF
already own the property Border
.
Ex: Listbox, Button, Gridview.
Controls with this property can have the thickness manipulated through the attribute BorderThickness
, the color of edge through the BorderBrush
and the "curvature" through the BorderRadius
.
Border (WPF Control)
There is a name control inside the WPF Border
which accepts only a "child element" and contains the same attributes as above: BorderBrush, BorderThickness e BorderRadius
. IS Important point out that if you want to use several elements within a Border, it is recommended to use a grid or another "Panel/Container" and within it insert the controls you want. Example Below:
WPF:
<Border BorderBrush="Black" BorderThickness="1" BorderRadius="15">
<Grid>
<Label Content="Title"/>
<Textbox/>
</Grid
</Border>
For more information on the Border control click here.
This does not answer the question. When you have reputation enough, you’ll be able to leave comments on any post but until then, write only answer that no depend on more information of who asked. - Of Revision
– Sam
That literally answers the question.
– Brewerton Santos
I believe you could improve your answer by explaining the same.
– NoobSaibot
there is an attribute called bordertrickness in the window, you only need to set its value to 0, which there is to explain?
– Brewerton Santos
it represents the border thickness, when I get the value 0, it removes it.
– Brewerton Santos