# C1.WPF.CustomConverter

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_CustomConverter" data-uid="C1.WPF.CustomConverter" class="text-break">CustomConverter Class
</h1>
  <div class="markdown level0 summary"><p>Converter which receive a function to convert the value</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"><span class="xref">CustomConverter</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.data.ivalueconverter">IValueConverter</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.html">C1.WPF</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.4.6.2.dll</h6>
  <h5 id="C1_WPF_CustomConverter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class CustomConverter : IValueConverter</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class CustomConverter
    Implements IValueConverter</code></pre>
  </div>
  <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_CustomConverter_Convert_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_" data-uid="C1.WPF.CustomConverter.Convert(System.Object,System.Type,System.Object,System.Globalization.CultureInfo)">
          <a class="xref" href="C1.WPF.CustomConverter.Convert.html#C1_WPF_CustomConverter_Convert_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_">Convert(object, Type, object, CultureInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Modifies the source data before passing it to the target for display in the UI.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_CustomConverter_ConvertBack_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_" data-uid="C1.WPF.CustomConverter.ConvertBack(System.Object,System.Type,System.Object,System.Globalization.CultureInfo)">
          <a class="xref" href="C1.WPF.CustomConverter.ConvertBack.html#C1_WPF_CustomConverter_ConvertBack_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_">ConvertBack(object, Type, object, CultureInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Modifies the target data before passing it to the source object.  This method is called only in <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.data.bindingmode#system-windows-data-bindingmode-twoway">TwoWay</a> bindings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_CustomConverter_Create_System_Func_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_System_Object__" data-uid="C1.WPF.CustomConverter.Create(System.Func{System.Object,System.Type,System.Object,System.Globalization.CultureInfo,System.Object})">
          <a class="xref" href="C1.WPF.CustomConverter.Create.html#C1_WPF_CustomConverter_Create_System_Func_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_System_Object__">Create(Func&lt;object, Type, object, CultureInfo, object&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates the specified converter function.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_CustomConverter_Create_System_Func_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_System_Object__System_Func_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_System_Object__" data-uid="C1.WPF.CustomConverter.Create(System.Func{System.Object,System.Type,System.Object,System.Globalization.CultureInfo,System.Object},System.Func{System.Object,System.Type,System.Object,System.Globalization.CultureInfo,System.Object})">
          <a class="xref" href="C1.WPF.CustomConverter.Create.html#C1_WPF_CustomConverter_Create_System_Func_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_System_Object__System_Func_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_System_Object__">Create(Func&lt;object, Type, object, CultureInfo, object&gt;, Func&lt;object, Type, object, CultureInfo, object&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates the specified converter function.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
