Skip to content

Instantly share code, notes, and snippets.

@peyangu
Created March 17, 2017 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peyangu/7e1da04a1bd81a6f5d680db2bf17365d to your computer and use it in GitHub Desktop.
Save peyangu/7e1da04a1bd81a6f5d680db2bf17365d to your computer and use it in GitHub Desktop.
XAMLでListViewをテーブル風に表示
<ListView x:Name="bloodList" IsPullToRefreshEnabled="true" Refreshing="OnRefresh">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout HorizontalOptions="StartAndExpand" Orientation="Horizontal" Padding="15,5,0,0">
<StackLayout Padding="5,0,0,0" VerticalOptions="StartAndExpand" Orientation="Horizontal" Spacing="10">
<Label Text="{Binding CreatedAt}" />
<Label Text="{Binding BloodGlucose}" />
<Label Text="{Binding InsulinQ}" />
</StackLayout>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment