Xamarin,绑定枚举到ListView

时间:2018-03-29 18:44:16

标签: c# xamarin

我有Xamarin forms ListView的列表,我将其绑定到public class Program { public string Text { get; set; } public string Color { set; get; } public LayoutAlignment LangDirection { set; get; } }

Text

ColorLangDirection工作正常,但<{>> LayoutAlignment <ListView x:Name="ItemsListView" ItemsSource="{Binding Items}"> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <StackLayout Padding="10"> <Label TextColor="{Binding Color}" Text="{Binding Text}" FontSize="16" HorizontalOptions="{Binding LangDirection}" /> </ViewCell> </DataTemplate> </ListView.ItemTemplate> </ListView> 正在工作! < / p>

<lable>
   Date:
  <input id="dp" type="text" />
</lable>

/** JS CODE **/
$(function() {

  $('#dp, #dp1').datepicker({
    defaultDate: new Date(),
    minDate: new Date()
  });

});

没有错误发生

0 个答案:

没有答案