我有Xamarin forms ListView
的列表,我将其绑定到public class Program
{
public string Text { get; set; }
public string Color { set; get; }
public LayoutAlignment LangDirection { set; get; }
}
Text
Color
和LangDirection
工作正常,但<{>> 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()
});
});
没有错误发生