# C1.Maui.Core.ViewEx

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Maui_Core_ViewEx" data-uid="C1.Maui.Core.ViewEx" class="text-break">ViewEx Class
</h1>
  <div class="markdown level0 summary"><p>View extensions</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">ViewEx</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Maui.Core.html">C1.Maui.Core</a></h6>
  <h6><strong>Assembly</strong>: C1.Maui.Core.dll</h6>
  <h5 id="C1_Maui_Core_ViewEx_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class ViewEx</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Module ViewEx</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_Maui_Core_ViewEx_GetAllParents_Microsoft_Maui_Controls_View_" data-uid="C1.Maui.Core.ViewEx.GetAllParents(Microsoft.Maui.Controls.View)">
          <a class="xref" href="C1.Maui.Core.ViewEx.GetAllParents.html#C1_Maui_Core_ViewEx_GetAllParents_Microsoft_Maui_Controls_View_">GetAllParents(View)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns all the parents in the visual tree</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_ViewEx_GetImage_Microsoft_Maui_Controls_View_" data-uid="C1.Maui.Core.ViewEx.GetImage(Microsoft.Maui.Controls.View)">
          <a class="xref" href="C1.Maui.Core.ViewEx.GetImage.html#C1_Maui_Core_ViewEx_GetImage_Microsoft_Maui_Controls_View_">GetImage(View)</a>
        </td>
        <td class="markdown level1 summary"><p>Get the byte array of the control image.
This byte array comes from a UIImagePNGRepresentation in iOS, TrueColorAlpha of PNG format in WP, Bitmap in Android.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Maui_Core_ViewEx_SetStyle_Microsoft_Maui_Controls_View_Microsoft_Maui_Controls_Style_" data-uid="C1.Maui.Core.ViewEx.SetStyle(Microsoft.Maui.Controls.View,Microsoft.Maui.Controls.Style)">
          <a class="xref" href="C1.Maui.Core.ViewEx.SetStyle.html#C1_Maui_Core_ViewEx_SetStyle_Microsoft_Maui_Controls_View_Microsoft_Maui_Controls_Style_">SetStyle(View, Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets <span class="xref">Microsoft.Maui.Controls.Style</span> to the specified <span class="xref">Microsoft.Maui.Controls.View</span></p>
</td>
      </tr>
    </tbody>
  </table>

</div>
