<StackLayout Orientation="Vertical">
<StackLayout Padding="10,5,10,5">
<SearchBar Text="{Binding keyValues,Mode=TwoWay}" Style="{StaticResource SearchBarStyle}" SearchCommand="{Binding SearchBarCommand}" />
</StackLayout>
<StackLayout Orientation="Horizontal" HorizontalOptions="FillAndExpand">
<Label Text="车牌号" Style="{StaticResource HeaderStyle}" />
<Label Text="发生时间" Style="{StaticResource HeaderStyle}" />
<Label Text="栅栏名字" Style="{StaticResource HeaderStyle}" />
</StackLayout>
<ListView ItemsSource="{Binding ZhalanAlarmList,Mode=OneWay}" HasUnevenRows="True">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation="Horizontal" HorizontalOptions="FillAndExpand">
<Label Text="{Binding chepaino,Mode=OneWay}" Style="{StaticResource DetailStyle}" HorizontalOptions="Start" />
<Label Text="{Binding dthappen,Mode=OneWay}" Style="{StaticResource DetailStyle}" HorizontalOptions="CenterAndExpand" />
<Label Text="{Binding zhalanname,Mode=OneWay}" Style="{StaticResource DetailStyle}" HorizontalOptions="End" />
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
and it seen hard to be aligned with the header ,any one have good suggestion !
↧
how could I make the listview header and the data align
↧