MahApps.Metro by Jan Karger, Dennis Daume, Brendan Forster, Paul Jenkins, Jake Ginnivan, Alex Mitchell

<PackageReference Include="MahApps.Metro" Version="2.1.1" />

.NET API 3,425,904 bytes

 ClipBorder

public sealed class ClipBorder : Decorator
Represents a border whose contents are clipped within the bounds of the border. The border may have rounded corners.
public static readonly DependencyProperty BackgroundProperty

Background Dependency Property

public static readonly DependencyProperty BorderBrushProperty

BorderBrush Dependency Property

BorderThickness Dependency Property

CornerRadius Dependency Property

OptimizeClipRendering Dependency Property

public static readonly DependencyProperty PaddingProperty

Padding Dependency Property

public Brush Background { get; set; }

Gets or sets the Background property. This dependency property indicates the Background with which the Background is drawn.

public Brush BorderBrush { get; set; }

Gets or sets the BorderBrush property. This dependency property indicates the BorderBrush with which the Border is drawn.

public Thickness BorderThickness { get; set; }

Gets or sets the BorderThickness property. This dependency property indicates the BorderThickness.

public CornerRadius CornerRadius { get; set; }

Gets or sets the CornerRadius property. This dependency property indicates the CornerRadius of the border.

public bool OptimizeClipRendering { get; set; }

Gets or sets the OptimizeClipRendering property. This dependency property indicates whether the rendering of the clip should be optimized. When set to true, In order to optimize the rendering of the clipped Child, the background is rendered with the same brush as the border. Any other brush set for the background will be ignored. The Child will be rendered on top of it. This is done to prevent any gaps between the border the the clipped Child (this is evidently visible if both the Border and the Child are of same color). This works best when the Child does not have any level of transparency and is opaque.

public Thickness Padding { get; set; }

Gets or sets the Padding property. This dependency property indicates the Padding.

public ClipBorder()