title: Control Elements Visibility from other class/viewModel
body: <p>I am development an app using xamarin forms, and I am trying to build an animated menu, this is what I have used</p>
  
  <ol>
  <li>I created a <code>ContentView</code> and put buttons there and created complete animations there (because same <code>contentview</code> will be used on multiple screens)
  animation works fine but buttons can not be clicked after they changed their position using TranslateTo method in xamarin.</li>
  <li>My idea was to use another hidden layout with  buttons on same positions where animated buttons will appear at end, but these button will have 0 opacity this means they will work properly but not visible to user, and when menu gone hidden this layout should be hidden too</li>
  </ol>
  
  <p><strong>The Problem:</strong> When I click on menu button animated menu appears correct but I am unable to make other layout visible or hide, </p>
  
  <p>I am not sure if we can hide/show elements from other classes other then View's on class, this what I am trying to achieve.</p>
  
  <p>Here is little sample of my code:</p>
  
  <p>Menus.cs (this is my ContentView which I am using in Detail.cs)</p>
  
  <pre><code>Detail d = new Detail();
  d.ToggleBtnLayout();
  </code></pre>
  
  <p>I am using this method in Menu.cs to show/hide a layout which is inside Detail.cs.</p>