title: Xamarin, Binding Enum to ListView
body: <p>I have a list of <code>Programs</code> and I binding it to <code>Xamarin forms ListView</code></p>
  
  <pre><code>public class Program
  {
      public string Text { get; set; }
      public string Color { set; get; }
      public LayoutAlignment LangDirection { set; get; }
  }
  </code></pre>
  
  <p><code>Text</code> and <code>Color</code> works fine but <code>LangDirection</code> of type  <strong><em>LayoutAlignment</em></strong> not <strong>working!</strong></p>
  
  <pre><code>    &lt;ListView       x:Name="ItemsListView" 
                      ItemsSource="{Binding Items}"&gt;
                          &lt;ListView.ItemTemplate&gt;
                              &lt;DataTemplate&gt;
                                  &lt;ViewCell&gt;
                                      &lt;StackLayout Padding="10"&gt;
                                          &lt;Label TextColor="{Binding Color}" 
                                                  Text="{Binding Text}" 
                                                  FontSize="16" 
                                                 HorizontalOptions="{Binding LangDirection}"
                                                 /&gt;
                                  &lt;/ViewCell&gt;
                              &lt;/DataTemplate&gt;
                          &lt;/ListView.ItemTemplate&gt;
     &lt;/ListView&gt;
  </code></pre>
  
  <p>And no error occur</p>