Created
March 17, 2017 01:42
-
-
Save peyangu/7e1da04a1bd81a6f5d680db2bf17365d to your computer and use it in GitHub Desktop.
XAMLでListViewをテーブル風に表示
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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