Properties of the Border Class in Silverlight

Background
Sets a background that appears behind all the content in the border using a Brush object. You can use a solid color among other options.
BorderBrush
Sets the fill of the border that appears around the edge of the Border object, using a Brush object. The most straightforward approach is to use a SolidColorBrush to create a solid border.
BorderThickness
Sets the width (in pixels) of the border on each side. The BorderThickness property holds an instance of the System.Windows.Thickness structure, with separate components for the top, bottom, left, and right edges.
CornerRadius
Rounds the corners of your border. The greater the CornerRadius, the more dramatic the rounding effect is.
Padding
Adds spacing between the border and the content inside. (Margin adds spacing outside the border.)

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.