title: IF statement Windows phone 8.1
body: <p>I'm using MS Visual Studio 2013.</p>
  
  <p>I'm making a Universal application for Windows Phone 8.1.</p>
  
  <p>On the MainPage I have three CheckBoxes, when some of these CheckBoxes are checked, then the TextBlock is counting Value. After the value become grater or equal then 22, some images should become invisible. If the value is less then 22 all images should be visible.</p>
  
  <p>This is some examples which I tried, but I was unlucky.</p>
  
  <pre><code>    private void points_Loaded(object sender, RoutedEventArgs e)
      {
         if (points.Text == "22")
          {
              hole10img.Visibility = Windows.UI.Xaml.Visibility;()
          }
      }
  </code></pre>
  
  <p>also I tried:</p>
  
  <pre><code>    private void points_Loaded(object sender, RoutedEventArgs e)
      {
         if (points.Text == "22")
          {
                  hole10img.Visibility = false;
          }
      }
  </code></pre>
  
  <p>but then I got the error:</p>
  
  <blockquote>
    <p>cannot implicitly convert type bool' to 'Windows.UI.Xaml.Visibility'</p>
  </blockquote>