title: Writing conditional statements in XAML code
body: <p>I have this listBox that gets populated, each item can be either male or female depending on the 'SEX' property that is binded to the listBox. (Could be either 'M' for male and 'F' for female)...</p>
  
  <p>For each item i would like to display either a male or female symbol based on the list items SEX property.</p>
  
  <p>for instance if "{Binding SEX}" equals 'M':</p>
  
  <pre><code>&lt;Image Source="../Images/male48.png" Visibility="Visible" /&gt;
  </code></pre>
  
  <p>and if "{Binding SEX}" equals 'F':</p>
  
  <pre><code>&lt;Image Source="../Images/female48.png" Visibility="Visible" /&gt;
  </code></pre>
  
  <p>How exactly would I go about getting this to work?</p>