# C1.WPF.Core.C1Border

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Core_C1Border" data-uid="C1.WPF.Core.C1Border" class="text-break">C1Border Class
</h1>
  <div class="markdown level0 summary"><p>Basic control used to draw a border around another view.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.visual">Visual</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level5"><a class="xref" href="C1.WPF.Core.C1View.html">C1View</a></div>
    <div class="level6"><span class="xref">C1Border</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.animation.ianimatable">IAnimatable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iframeworkinputelement">IFrameworkInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iinputelement">IInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iqueryambient">IQueryAmbient</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Core.html">C1.WPF.Core</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Core.dll</h6>
  <h5 id="C1_WPF_Core_C1Border_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;ContentPresenter&quot;, Type = typeof(ContentPresenter))]
public class C1Border : C1View, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;ContentPresenter&quot;, Type:=GetType(ContentPresenter))&gt;
Public Class C1Border
    Inherits C1View
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IDisposable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Core_C1Border__ctor" data-uid="C1.WPF.Core.C1Border.#ctor">
          <a class="xref" href="C1.WPF.Core.C1Border.-ctor.html#C1_WPF_Core_C1Border__ctor">C1Border()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.Core.C1Border.html">C1Border</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Core_C1Border_BorderAlignmentProperty" data-uid="C1.WPF.Core.C1Border.BorderAlignmentProperty">
          <a class="xref" href="C1.WPF.Core.C1Border.BorderAlignmentProperty.html">BorderAlignmentProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Core.C1Border.BorderAlignment.html#C1_WPF_Core_C1Border_BorderAlignment">BorderAlignment</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border__borderAlignment" data-uid="C1.WPF.Core.C1Border._borderAlignment">
          <a class="xref" href="C1.WPF.Core.C1Border._borderAlignment.html">_borderAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the way to draw the borders.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Core_C1Border_BorderAlignment" data-uid="C1.WPF.Core.C1Border.BorderAlignment">
          <a class="xref" href="C1.WPF.Core.C1Border.BorderAlignment.html#C1_WPF_Core_C1Border_BorderAlignment">BorderAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the way to draw the borders.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_Content" data-uid="C1.WPF.Core.C1Border.Content">
          <a class="xref" href="C1.WPF.Core.C1Border.Content.html#C1_WPF_Core_C1Border_Content">Content</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the content to show inside the border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_ContentPadding" data-uid="C1.WPF.Core.C1Border.ContentPadding">
          <a class="xref" href="C1.WPF.Core.C1Border.ContentPadding.html#C1_WPF_Core_C1Border_ContentPadding">ContentPadding</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the actual padding of the content</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_LogicalChildren" data-uid="C1.WPF.Core.C1Border.LogicalChildren">
          <a class="xref" href="C1.WPF.Core.C1Border.LogicalChildren.html#C1_WPF_Core_C1Border_LogicalChildren">LogicalChildren</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_NeedsRenderContent" data-uid="C1.WPF.Core.C1Border.NeedsRenderContent">
          <a class="xref" href="C1.WPF.Core.C1Border.NeedsRenderContent.html#C1_WPF_Core_C1Border_NeedsRenderContent">NeedsRenderContent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether the <a class="xref" href="C1.WPF.Core.C1Border.OnRenderContent.html#C1_WPF_Core_C1Border_OnRenderContent_System_Windows_Media_DrawingContext_System_Windows_Rect_">OnRenderContent(DrawingContext, Rect)</a> method needs to be executed and the clipping of the content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_VisualChildrenCount" data-uid="C1.WPF.Core.C1Border.VisualChildrenCount">
          <a class="xref" href="C1.WPF.Core.C1Border.VisualChildrenCount.html#C1_WPF_Core_C1Border_VisualChildrenCount">VisualChildrenCount</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Core_C1Border_AddLogicalChildInternal_System_Object_" data-uid="C1.WPF.Core.C1Border.AddLogicalChildInternal(System.Object)">
          <a class="xref" href="C1.WPF.Core.C1Border.AddLogicalChildInternal.html#C1_WPF_Core_C1Border_AddLogicalChildInternal_System_Object_">AddLogicalChildInternal(object)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_ArrangeOverride_System_Windows_Size_" data-uid="C1.WPF.Core.C1Border.ArrangeOverride(System.Windows.Size)">
          <a class="xref" href="C1.WPF.Core.C1Border.ArrangeOverride.html#C1_WPF_Core_C1Border_ArrangeOverride_System_Windows_Size_">ArrangeOverride(Size)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_Dispose_System_Boolean_" data-uid="C1.WPF.Core.C1Border.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.Core.C1Border.Dispose.html#C1_WPF_Core_C1Border_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_GetContentMeasureSize_System_Windows_Size_System_Boolean_System_Boolean_" data-uid="C1.WPF.Core.C1Border.GetContentMeasureSize(System.Windows.Size,System.Boolean,System.Boolean)">
          <a class="xref" href="C1.WPF.Core.C1Border.GetContentMeasureSize.html#C1_WPF_Core_C1Border_GetContentMeasureSize_System_Windows_Size_System_Boolean_System_Boolean_">GetContentMeasureSize(Size, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the measure of the content of the border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_GetInsideMeasureSize_System_Windows_Size_System_Boolean_System_Boolean_" data-uid="C1.WPF.Core.C1Border.GetInsideMeasureSize(System.Windows.Size,System.Boolean,System.Boolean)">
          <a class="xref" href="C1.WPF.Core.C1Border.GetInsideMeasureSize.html#C1_WPF_Core_C1Border_GetInsideMeasureSize_System_Windows_Size_System_Boolean_System_Boolean_">GetInsideMeasureSize(Size, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the measure of the content of the border, including paddings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_GetVisualChild_System_Int32_" data-uid="C1.WPF.Core.C1Border.GetVisualChild(System.Int32)">
          <a class="xref" href="C1.WPF.Core.C1Border.GetVisualChild.html#C1_WPF_Core_C1Border_GetVisualChild_System_Int32_">GetVisualChild(int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_LayoutContent_System_Windows_Rect_" data-uid="C1.WPF.Core.C1Border.LayoutContent(System.Windows.Rect)">
          <a class="xref" href="C1.WPF.Core.C1Border.LayoutContent.html#C1_WPF_Core_C1Border_LayoutContent_System_Windows_Rect_">LayoutContent(Rect)</a>
        </td>
        <td class="markdown level1 summary"><p>Layout the content of the border in the specified <code class="paramref">contentFinalSize</code>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_LayoutInside_System_Windows_Rect_" data-uid="C1.WPF.Core.C1Border.LayoutInside(System.Windows.Rect)">
          <a class="xref" href="C1.WPF.Core.C1Border.LayoutInside.html#C1_WPF_Core_C1Border_LayoutInside_System_Windows_Rect_">LayoutInside(Rect)</a>
        </td>
        <td class="markdown level1 summary"><p>Layout the part inside the border in the specified <code class="paramref">insideFinalSize</code>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_MeasureOverride_System_Windows_Size_" data-uid="C1.WPF.Core.C1Border.MeasureOverride(System.Windows.Size)">
          <a class="xref" href="C1.WPF.Core.C1Border.MeasureOverride.html#C1_WPF_Core_C1Border_MeasureOverride_System_Windows_Size_">MeasureOverride(Size)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_OnApplyTemplate" data-uid="C1.WPF.Core.C1Border.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Core.C1Border.OnApplyTemplate.html#C1_WPF_Core_C1Border_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_OnBackgroundChanged" data-uid="C1.WPF.Core.C1Border.OnBackgroundChanged">
          <a class="xref" href="C1.WPF.Core.C1Border.OnBackgroundChanged.html#C1_WPF_Core_C1Border_OnBackgroundChanged">OnBackgroundChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the background changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_OnBorderAlignmentChanged" data-uid="C1.WPF.Core.C1Border.OnBorderAlignmentChanged">
          <a class="xref" href="C1.WPF.Core.C1Border.OnBorderAlignmentChanged.html#C1_WPF_Core_C1Border_OnBorderAlignmentChanged">OnBorderAlignmentChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the border alignment changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_OnBorderBrushChanged" data-uid="C1.WPF.Core.C1Border.OnBorderBrushChanged">
          <a class="xref" href="C1.WPF.Core.C1Border.OnBorderBrushChanged.html#C1_WPF_Core_C1Border_OnBorderBrushChanged">OnBorderBrushChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the border brush changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_OnBorderThicknessChanged" data-uid="C1.WPF.Core.C1Border.OnBorderThicknessChanged">
          <a class="xref" href="C1.WPF.Core.C1Border.OnBorderThicknessChanged.html#C1_WPF_Core_C1Border_OnBorderThicknessChanged">OnBorderThicknessChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the border thickness changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_OnContentPaddingChanged" data-uid="C1.WPF.Core.C1Border.OnContentPaddingChanged">
          <a class="xref" href="C1.WPF.Core.C1Border.OnContentPaddingChanged.html#C1_WPF_Core_C1Border_OnContentPaddingChanged">OnContentPaddingChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the <a class="xref" href="C1.WPF.Core.C1Border.ContentPadding.html#C1_WPF_Core_C1Border_ContentPadding">ContentPadding</a> property changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_OnCornerRadiusChanged" data-uid="C1.WPF.Core.C1Border.OnCornerRadiusChanged">
          <a class="xref" href="C1.WPF.Core.C1Border.OnCornerRadiusChanged.html#C1_WPF_Core_C1Border_OnCornerRadiusChanged">OnCornerRadiusChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the corner-radius changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_OnPaddingChanged" data-uid="C1.WPF.Core.C1Border.OnPaddingChanged">
          <a class="xref" href="C1.WPF.Core.C1Border.OnPaddingChanged.html#C1_WPF_Core_C1Border_OnPaddingChanged">OnPaddingChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the padding changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_OnRender_System_Windows_Media_DrawingContext_" data-uid="C1.WPF.Core.C1Border.OnRender(System.Windows.Media.DrawingContext)">
          <a class="xref" href="C1.WPF.Core.C1Border.OnRender.html#C1_WPF_Core_C1Border_OnRender_System_Windows_Media_DrawingContext_">OnRender(DrawingContext)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_OnRenderBackground_System_Windows_Media_DrawingContext_System_Windows_Rect_" data-uid="C1.WPF.Core.C1Border.OnRenderBackground(System.Windows.Media.DrawingContext,System.Windows.Rect)">
          <a class="xref" href="C1.WPF.Core.C1Border.OnRenderBackground.html#C1_WPF_Core_C1Border_OnRenderBackground_System_Windows_Media_DrawingContext_System_Windows_Rect_">OnRenderBackground(DrawingContext, Rect)</a>
        </td>
        <td class="markdown level1 summary"><p>Draw the background of the control in the specified <code class="paramref">drawingContext</code>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_OnRenderContent_System_Windows_Media_DrawingContext_System_Windows_Rect_" data-uid="C1.WPF.Core.C1Border.OnRenderContent(System.Windows.Media.DrawingContext,System.Windows.Rect)">
          <a class="xref" href="C1.WPF.Core.C1Border.OnRenderContent.html#C1_WPF_Core_C1Border_OnRenderContent_System_Windows_Media_DrawingContext_System_Windows_Rect_">OnRenderContent(DrawingContext, Rect)</a>
        </td>
        <td class="markdown level1 summary"><p>Draw the content of the control in the specified <code class="paramref">drawingContext</code>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_OnRenderSizeChanged_System_Windows_SizeChangedInfo_" data-uid="C1.WPF.Core.C1Border.OnRenderSizeChanged(System.Windows.SizeChangedInfo)">
          <a class="xref" href="C1.WPF.Core.C1Border.OnRenderSizeChanged.html#C1_WPF_Core_C1Border_OnRenderSizeChanged_System_Windows_SizeChangedInfo_">OnRenderSizeChanged(SizeChangedInfo)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1Border_RemoveLogicalChildInternal_System_Object_" data-uid="C1.WPF.Core.C1Border.RemoveLogicalChildInternal(System.Object)">
          <a class="xref" href="C1.WPF.Core.C1Border.RemoveLogicalChildInternal.html#C1_WPF_Core_C1Border_RemoveLogicalChildInternal_System_Object_">RemoveLogicalChildInternal(object)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use only.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
