# C1.WPF.Core.C1SvgIcon_1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Core_C1SvgIcon" data-uid="C1.WPF.Core.C1SvgIcon" class="text-break">C1SvgIcon Class
</h1>
  <div class="markdown level0 summary"><p>Represents an icon created from an svg file.</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"><a class="xref" href="C1.WPF.Core.C1Icon.html">C1Icon</a></div>
    <div class="level7"><span class="xref">C1SvgIcon</span></div>
      <div class="level8"><a class="xref" href="C1.WPF.Core.C1SVGIcon.html">C1SVGIcon</a></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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</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_C1SvgIcon_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1SvgIcon : C1Icon, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IDisposable, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1SvgIcon
    Inherits C1Icon
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IDisposable, ICloneable</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_C1SvgIcon__ctor" data-uid="C1.WPF.Core.C1SvgIcon.#ctor">
          <a class="xref" href="C1.WPF.Core.C1SvgIcon.-ctor(Constructor)_1.html#C1_WPF_Core_C1SvgIcon__ctor">C1SvgIcon()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.Core.C1SvgIcon_1.html">C1SvgIcon</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_C1SvgIcon_SourceProperty" data-uid="C1.WPF.Core.C1SvgIcon.SourceProperty">
          <a class="xref" href="C1.WPF.Core.C1SvgIcon.SourceProperty.html">SourceProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Core.C1SvgIcon.Source.html#C1_WPF_Core_C1SvgIcon_Source">Source</a> dependency property.</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_C1SvgIcon_Source" data-uid="C1.WPF.Core.C1SvgIcon.Source">
          <a class="xref" href="C1.WPF.Core.C1SvgIcon.Source.html#C1_WPF_Core_C1SvgIcon_Source">Source</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the image source.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1SvgIcon_ViewBox" data-uid="C1.WPF.Core.C1SvgIcon.ViewBox">
          <a class="xref" href="C1.WPF.Core.C1SvgIcon.ViewBox.html#C1_WPF_Core_C1SvgIcon_ViewBox">ViewBox</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the viewBox of the svg file.</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_WPF_Core_C1SvgIcon_Clone" data-uid="C1.WPF.Core.C1SvgIcon.Clone">
          <a class="xref" href="C1.WPF.Core.C1SvgIcon.Clone.html#C1_WPF_Core_C1SvgIcon_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a copy of the icon.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1SvgIcon_CloneOverride" data-uid="C1.WPF.Core.C1SvgIcon.CloneOverride">
          <a class="xref" href="C1.WPF.Core.C1SvgIcon.CloneOverride.html#C1_WPF_Core_C1SvgIcon_CloneOverride">CloneOverride()</a>
        </td>
        <td class="markdown level1 summary"><p>When overridden, it creates a copy of the icon.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1SvgIcon_Dispose_System_Boolean_" data-uid="C1.WPF.Core.C1SvgIcon.Dispose(System.Boolean)">
          <a class="xref" href="C1.WPF.Core.C1SvgIcon.Dispose.html#C1_WPF_Core_C1SvgIcon_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1SvgIcon_GetLayoutClip_System_Windows_Size_" data-uid="C1.WPF.Core.C1SvgIcon.GetLayoutClip(System.Windows.Size)">
          <a class="xref" href="C1.WPF.Core.C1SvgIcon.GetLayoutClip.html#C1_WPF_Core_C1SvgIcon_GetLayoutClip_System_Windows_Size_">GetLayoutClip(Size)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1SvgIcon_OnApplyTemplate" data-uid="C1.WPF.Core.C1SvgIcon.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Core.C1SvgIcon.OnApplyTemplate.html#C1_WPF_Core_C1SvgIcon_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1SvgIcon_OnForegroundChanged" data-uid="C1.WPF.Core.C1SvgIcon.OnForegroundChanged">
          <a class="xref" href="C1.WPF.Core.C1SvgIcon.OnForegroundChanged.html#C1_WPF_Core_C1SvgIcon_OnForegroundChanged">OnForegroundChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the foreground changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Core_C1SvgIcon_OnRender_System_Windows_Media_DrawingContext_" data-uid="C1.WPF.Core.C1SvgIcon.OnRender(System.Windows.Media.DrawingContext)">
          <a class="xref" href="C1.WPF.Core.C1SvgIcon.OnRender.html#C1_WPF_Core_C1SvgIcon_OnRender_System_Windows_Media_DrawingContext_">OnRender(DrawingContext)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
