# C1.WinUI.Core.OrientationConverter

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WinUI_Core_OrientationConverter" data-uid="C1.WinUI.Core.OrientationConverter" class="text-break">OrientationConverter Class
</h1>
  <div class="markdown level0 summary"><p>Converts an <span class="xref">Microsoft.UI.Xaml.Controls.Orientation</span> value to a <span class="xref">Microsoft.UI.Xaml.Media.RotateTransform</span>.</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">OrientationConverter</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><span class="xref">IValueConverter</span></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_OrientationConverter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class OrientationConverter : IValueConverter</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class OrientationConverter
    Implements IValueConverter</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_OrientationConverter__ctor" data-uid="C1.WinUI.Core.OrientationConverter.#ctor">
          <a class="xref" href="C1.WinUI.Core.OrientationConverter.-ctor.html#C1_WinUI_Core_OrientationConverter__ctor">OrientationConverter()</a>
        </td>
        <td class="markdown level1 summary"></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_OrientationConverter_Opposite" data-uid="C1.WinUI.Core.OrientationConverter.Opposite">
          <a class="xref" href="C1.WinUI.Core.OrientationConverter.Opposite.html#C1_WinUI_Core_OrientationConverter_Opposite">Opposite</a>
        </td>
        <td class="markdown level1 summary"><p>If true, the rotation will be performed the other way round.</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_OrientationConverter_Convert_System_Object_System_Type_System_Object_System_String_" data-uid="C1.WinUI.Core.OrientationConverter.Convert(System.Object,System.Type,System.Object,System.String)">
          <a class="xref" href="C1.WinUI.Core.OrientationConverter.Convert.html#C1_WinUI_Core_OrientationConverter_Convert_System_Object_System_Type_System_Object_System_String_">Convert(object, Type, object, string)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WinUI_Core_OrientationConverter_ConvertBack_System_Object_System_Type_System_Object_System_String_" data-uid="C1.WinUI.Core.OrientationConverter.ConvertBack(System.Object,System.Type,System.Object,System.String)">
          <a class="xref" href="C1.WinUI.Core.OrientationConverter.ConvertBack.html#C1_WinUI_Core_OrientationConverter_ConvertBack_System_Object_System_Type_System_Object_System_String_">ConvertBack(object, Type, object, string)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
