title: UWP - binding Enum differences
body: <p>I have come across a very interesting issue.</p>
  
  <p>Suppose you have the following XAML page content in a UWP app:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;ContentControl Content="{x:Bind ApplicationDataLocalityEnum}" /&gt;
  &lt;ContentControl Content="{x:Bind FontStyleEnum}" /&gt;
  </code></pre>
  
  <p>And in the code-behind of the page contains the following properties:</p>
  
  <pre class="lang-cs prettyprint-override"><code>    public ApplicationDataLocality ApplicationDataLocalityEnum { get; } =
                 ApplicationDataLocality.Local;
  
      public FontStyle FontStyleEnum { get; } = 
                 FontStyle.Normal;
  </code></pre>
  
  <p><strong>Expected</strong> result would be, that the app would display "Local" and "Normal". </p>
  
  <p><strong>Actual</strong> result is however the following:</p>
  
  <p><a href="https://i.stack.imgur.com/lQnXl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lQnXl.png" alt="enter image description here"></a></p>
  
  <p>What is the reason behind this? I am very curious about it, but even though I have tried digging into debugger values for a long time, it never revealed anything that could cause this.</p>
  
  <p>You can play around with my <a href="https://github.com/MartinZikmund/Stack-Overflow-2016/tree/master/EnumDisplayQuestion" rel="nofollow noreferrer">sample project on GitHub</a>.</p>