title: XAML binding list enum
body: <pre><code>   class EnumToStringConverter : IValueConverter
      {
  
      public object Convert(object value, Type targetType, object parameter, string language)
  
      {
              return loai.ToDisplaytring();
      }
  
      public object ConvertBack(object value, Type targetType, object parameter, string language)
      {
          throw new NotImplementedException();
      }
  }
  
  &lt;ListView ItemsSource="{Binding ListEnum" Margin="0,51,0,0"&gt;
                      &lt;ListView.ItemTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;TextBlock Text="{Binding Path=.,Converter={StaticResource EnumToStringConverter}}" HorizontalAlignment="Center" FontSize="18"/&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/ListView.ItemTemplate&gt;
      &lt;/ListView&gt;
  </code></pre>
  
  <p>I am a new guy to XAML.</p>
  
  <p>I just want to display enum in listview. </p>
  
  <p>But it has some problem of binding itself with binding:</p>
  
  <pre><code>{Binding Path=.,Converter={StaticResource EnumToStringConverter}}
  </code></pre>