Description
The Round
field of the BorderImageRepeat
enumeration specifies that the source image's edge regions are tiled (repeated) to fill the gap between each border. If necessary, the tiles may be stretched to ensure they fit properly within the available space.
Usage
Use the Round
value when you want the border image to repeat around the element's border, adjusting the size of the tiles to fit the space without leaving gaps.
Example
// Example of using BorderImageRepeat.Round in a UI component
var myBorderStyle = new BorderStyle
{
ImageSource = "path/to/image.png",
ImageRepeat = BorderImageRepeat.Round
};
// Apply the border style to a UI element
myUIElement.Style.Border = myBorderStyle;