[]
        
(Showing Draft Content)

C1.WPF.Core.C1Border

C1Border Class

Basic control used to draw a border around another view.

Namespace: C1.WPF.Core
Assembly: C1.WPF.Core.dll
Syntax
[TemplatePart(Name = "ContentPresenter", Type = typeof(ContentPresenter))]
public class C1Border : C1View, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IDisposable

Constructors

Name Description
C1Border()

Initializes a new instance of the C1Border class.

Fields

Name Description
BorderAlignmentProperty

Identifies the BorderAlignment dependency property.

_borderAlignment

Gets or sets the way to draw the borders.

Properties

Name Description
BorderAlignment

Gets or sets the way to draw the borders.

Content

Gets or sets the content to show inside the border.

ContentPadding

Gets the actual padding of the content

LogicalChildren
NeedsRenderContent

Gets whether the OnRenderContent(DrawingContext, Rect) method needs to be executed and the clipping of the content.

VisualChildrenCount

Methods

Name Description
AddLogicalChildInternal(object)

For internal use only.

ArrangeOverride(Size)
Dispose(bool)
GetContentMeasureSize(Size, bool, bool)

Gets the measure of the content of the border.

GetInsideMeasureSize(Size, bool, bool)

Gets the measure of the content of the border, including paddings.

GetVisualChild(int)
LayoutContent(Rect)

Layout the content of the border in the specified contentFinalSize.

LayoutInside(Rect)

Layout the part inside the border in the specified insideFinalSize.

MeasureOverride(Size)
OnApplyTemplate()
OnBackgroundChanged()

Called when the background changed.

OnBorderAlignmentChanged()

Called when the border alignment changed.

OnBorderBrushChanged()

Called when the border brush changed.

OnBorderThicknessChanged()

Called when the border thickness changed.

OnCornerRadiusChanged()

Called when the corner-radius changed.

OnPaddingChanged()

Called when the padding changed.

OnRender(DrawingContext)
OnRenderBackground(DrawingContext, Rect)

Draw the background of the control in the specified drawingContext.

OnRenderContent(DrawingContext, Rect)

Draw the content of the control in the specified drawingContext.

RemoveLogicalChildInternal(object)

For internal use only.