Created
July 17, 2016 17:43
-
-
Save chrisriesgo/5b06d81f4c52ba5fea5d41d0a1312917 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<Grid RowSpacing="0"> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="Auto" /> | |
<RowDefinition Height="*" /> | |
</Grid.RowDefinitions> | |
<ActivityIndicator Grid.RowSpan="2" | |
HorizontalOptions="Center" | |
VerticalOptions="Center" | |
IsVisible="False" | |
IsEnabled="True" | |
x:Name="syncIndicator"/> | |
<StackLayout Grid.Row="0" BackgroundColor="#5ABAFF" Padding="10,30,10,5"> | |
<Label TextColor="#555555" Text="Azure App Service" /> | |
<Grid> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition/> | |
<ColumnDefinition Width="Auto"/> | |
</Grid.ColumnDefinitions> | |
<Entry x:Name="newItemName" | |
Placeholder="Item name" /> | |
<StackLayout x:Name="buttonsPanel" Grid.Column="1" Orientation="Horizontal" HorizontalOptions="StartAndExpand"> | |
<Button Text="+" | |
MinimumHeightRequest="30" | |
Clicked="OnAdd" /> | |
</StackLayout> | |
</Grid> | |
</StackLayout> | |
<ListView x:Name="todoList" | |
ItemSelected="OnSelected" | |
IsPullToRefreshEnabled="true" Refreshing="OnRefresh" | |
Grid.Row="1"> | |
<ListView.ItemTemplate> | |
<DataTemplate> | |
<ViewCell> | |
<ViewCell.ContextActions> | |
<MenuItem Clicked="OnComplete" Text="Complete" CommandParameter="{Binding .}"/> | |
</ViewCell.ContextActions> | |
<StackLayout HorizontalOptions="StartAndExpand" Orientation="Horizontal" Padding="15,5,0,0"> | |
<StackLayout Padding="5,0,0,0" VerticalOptions="StartAndExpand" Orientation="Vertical"> | |
<Label Text="{Binding Name}" /> | |
</StackLayout> | |
</StackLayout> | |
</ViewCell> | |
</DataTemplate> | |
</ListView.ItemTemplate> | |
</ListView> | |
</Grid> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment