title: System type of Visibility in C#
body: <p>I am newbie to C# programming language.
  My problem is writing a method that use "item.Visibility" attribute and checking visibility.
  The pseudo code of it:</p>
  
  <pre>
  <code>
  private void MenuItem_Check(MenuItem item){
       if ((item.Visibility.ToString()=="Hidden") ||(item.Visibility.ToString()=="Collapsed") )
       item.Visibility=Visibility.Visible;
  }
  
  </code>
  </pre>
  
  <p>My best regards and thanks in advance.</p>