# C1.WinUI.Core.C1Border

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WinUI_Core_C1Border" data-uid="C1.WinUI.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="C1.WinUI.Core.C1View.html">C1View</a></div>
    <div class="level2"><span class="xref">C1Border</span></div>
      <div class="level3"><a class="xref" href="../C1.WinUI.Calendar/C1.WinUI.Calendar.CalendarSlotPresenter.html">CalendarSlotPresenter</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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.WinUI.Core.html">C1.WinUI.Core</a></h6>
  <h6><strong>Assembly</strong>: C1.WinUI.Core.dll</h6>
  <h5 id="C1_WinUI_Core_C1Border_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1Border : C1View, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1Border
    Inherits C1View
    Implements 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_WinUI_Core_C1Border__ctor" data-uid="C1.WinUI.Core.C1Border.#ctor">
          <a class="xref" href="C1.WinUI.Core.C1Border.-ctor.html#C1_WinUI_Core_C1Border__ctor">C1Border()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WinUI.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_WinUI_Core_C1Border_BorderAlignmentProperty" data-uid="C1.WinUI.Core.C1Border.BorderAlignmentProperty">
          <a class="xref" href="C1.WinUI.Core.C1Border.BorderAlignmentProperty.html">BorderAlignmentProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WinUI.Core.C1Border.BorderAlignment.html#C1_WinUI_Core_C1Border_BorderAlignment">BorderAlignment</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Core_C1Border__borderAlignment" data-uid="C1.WinUI.Core.C1Border._borderAlignment">
          <a class="xref" href="C1.WinUI.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_WinUI_Core_C1Border_BorderAlignment" data-uid="C1.WinUI.Core.C1Border.BorderAlignment">
          <a class="xref" href="C1.WinUI.Core.C1Border.BorderAlignment.html#C1_WinUI_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_WinUI_Core_C1Border_Content" data-uid="C1.WinUI.Core.C1Border.Content">
          <a class="xref" href="C1.WinUI.Core.C1Border.Content.html#C1_WinUI_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_WinUI_Core_C1Border_ContentPadding" data-uid="C1.WinUI.Core.C1Border.ContentPadding">
          <a class="xref" href="C1.WinUI.Core.C1Border.ContentPadding.html#C1_WinUI_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_WinUI_Core_C1Border_NeedsDrawing" data-uid="C1.WinUI.Core.C1Border.NeedsDrawing">
          <a class="xref" href="C1.WinUI.Core.C1Border.NeedsDrawing.html#C1_WinUI_Core_C1Border_NeedsDrawing">NeedsDrawing</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the drawing method is executed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Core_C1Border_NeedsRenderContent" data-uid="C1.WinUI.Core.C1Border.NeedsRenderContent">
          <a class="xref" href="C1.WinUI.Core.C1Border.NeedsRenderContent.html#C1_WinUI_Core_C1Border_NeedsRenderContent">NeedsRenderContent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether the <a class="xref" href="C1.WinUI.Core.C1Border.OnRenderContent.html#C1_WinUI_Core_C1Border_OnRenderContent_Microsoft_Graphics_Canvas_CanvasDrawingSession_Windows_Foundation_Rect_">OnRenderContent(CanvasDrawingSession, Rect)</a> method needs to be executed and the clipping of the content.</p>
</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_WinUI_Core_C1Border_Dispose_System_Boolean_" data-uid="C1.WinUI.Core.C1Border.Dispose(System.Boolean)">
          <a class="xref" href="C1.WinUI.Core.C1Border.Dispose.html#C1_WinUI_Core_C1Border_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WinUI_Core_C1Border_GetContentMeasureSize_Windows_Foundation_Size_System_Boolean_System_Boolean_" data-uid="C1.WinUI.Core.C1Border.GetContentMeasureSize(Windows.Foundation.Size,System.Boolean,System.Boolean)">
          <a class="xref" href="C1.WinUI.Core.C1Border.GetContentMeasureSize.html#C1_WinUI_Core_C1Border_GetContentMeasureSize_Windows_Foundation_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_WinUI_Core_C1Border_GetInsideMeasureSize_Windows_Foundation_Size_System_Boolean_System_Boolean_" data-uid="C1.WinUI.Core.C1Border.GetInsideMeasureSize(Windows.Foundation.Size,System.Boolean,System.Boolean)">
          <a class="xref" href="C1.WinUI.Core.C1Border.GetInsideMeasureSize.html#C1_WinUI_Core_C1Border_GetInsideMeasureSize_Windows_Foundation_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_WinUI_Core_C1Border_InvalidateDrawing" data-uid="C1.WinUI.Core.C1Border.InvalidateDrawing">
          <a class="xref" href="C1.WinUI.Core.C1Border.InvalidateDrawing.html#C1_WinUI_Core_C1Border_InvalidateDrawing">InvalidateDrawing()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WinUI_Core_C1Border_LayoutContent_Windows_Foundation_Rect_" data-uid="C1.WinUI.Core.C1Border.LayoutContent(Windows.Foundation.Rect)">
          <a class="xref" href="C1.WinUI.Core.C1Border.LayoutContent.html#C1_WinUI_Core_C1Border_LayoutContent_Windows_Foundation_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_WinUI_Core_C1Border_LayoutInside_Windows_Foundation_Rect_" data-uid="C1.WinUI.Core.C1Border.LayoutInside(Windows.Foundation.Rect)">
          <a class="xref" href="C1.WinUI.Core.C1Border.LayoutInside.html#C1_WinUI_Core_C1Border_LayoutInside_Windows_Foundation_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_WinUI_Core_C1Border_OnApplyTemplate" data-uid="C1.WinUI.Core.C1Border.OnApplyTemplate">
          <a class="xref" href="C1.WinUI.Core.C1Border.OnApplyTemplate.html#C1_WinUI_Core_C1Border_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WinUI_Core_C1Border_OnBackgroundChanged" data-uid="C1.WinUI.Core.C1Border.OnBackgroundChanged">
          <a class="xref" href="C1.WinUI.Core.C1Border.OnBackgroundChanged.html#C1_WinUI_Core_C1Border_OnBackgroundChanged">OnBackgroundChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the background changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Core_C1Border_OnBorderAlignmentChanged" data-uid="C1.WinUI.Core.C1Border.OnBorderAlignmentChanged">
          <a class="xref" href="C1.WinUI.Core.C1Border.OnBorderAlignmentChanged.html#C1_WinUI_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_WinUI_Core_C1Border_OnBorderBrushChanged" data-uid="C1.WinUI.Core.C1Border.OnBorderBrushChanged">
          <a class="xref" href="C1.WinUI.Core.C1Border.OnBorderBrushChanged.html#C1_WinUI_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_WinUI_Core_C1Border_OnBorderThicknessChanged" data-uid="C1.WinUI.Core.C1Border.OnBorderThicknessChanged">
          <a class="xref" href="C1.WinUI.Core.C1Border.OnBorderThicknessChanged.html#C1_WinUI_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_WinUI_Core_C1Border_OnContentPaddingChanged" data-uid="C1.WinUI.Core.C1Border.OnContentPaddingChanged">
          <a class="xref" href="C1.WinUI.Core.C1Border.OnContentPaddingChanged.html#C1_WinUI_Core_C1Border_OnContentPaddingChanged">OnContentPaddingChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the <a class="xref" href="C1.WinUI.Core.C1Border.ContentPadding.html#C1_WinUI_Core_C1Border_ContentPadding">ContentPadding</a> property changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Core_C1Border_OnCornerRadiusChanged" data-uid="C1.WinUI.Core.C1Border.OnCornerRadiusChanged">
          <a class="xref" href="C1.WinUI.Core.C1Border.OnCornerRadiusChanged.html#C1_WinUI_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_WinUI_Core_C1Border_OnPaddingChanged" data-uid="C1.WinUI.Core.C1Border.OnPaddingChanged">
          <a class="xref" href="C1.WinUI.Core.C1Border.OnPaddingChanged.html#C1_WinUI_Core_C1Border_OnPaddingChanged">OnPaddingChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the padding changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Core_C1Border_OnRender_Microsoft_Graphics_Canvas_CanvasDrawingSession_" data-uid="C1.WinUI.Core.C1Border.OnRender(Microsoft.Graphics.Canvas.CanvasDrawingSession)">
          <a class="xref" href="C1.WinUI.Core.C1Border.OnRender.html#C1_WinUI_Core_C1Border_OnRender_Microsoft_Graphics_Canvas_CanvasDrawingSession_">OnRender(CanvasDrawingSession)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the control is drawn.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Core_C1Border_OnRenderBackground_Microsoft_Graphics_Canvas_CanvasDrawingSession_Windows_Foundation_Rect_" data-uid="C1.WinUI.Core.C1Border.OnRenderBackground(Microsoft.Graphics.Canvas.CanvasDrawingSession,Windows.Foundation.Rect)">
          <a class="xref" href="C1.WinUI.Core.C1Border.OnRenderBackground.html#C1_WinUI_Core_C1Border_OnRenderBackground_Microsoft_Graphics_Canvas_CanvasDrawingSession_Windows_Foundation_Rect_">OnRenderBackground(CanvasDrawingSession, 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_WinUI_Core_C1Border_OnRenderContent_Microsoft_Graphics_Canvas_CanvasDrawingSession_Windows_Foundation_Rect_" data-uid="C1.WinUI.Core.C1Border.OnRenderContent(Microsoft.Graphics.Canvas.CanvasDrawingSession,Windows.Foundation.Rect)">
          <a class="xref" href="C1.WinUI.Core.C1Border.OnRenderContent.html#C1_WinUI_Core_C1Border_OnRenderContent_Microsoft_Graphics_Canvas_CanvasDrawingSession_Windows_Foundation_Rect_">OnRenderContent(CanvasDrawingSession, 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>
    </tbody>
  </table>

</div>
