Skip to content

Instantly share code, notes, and snippets.

@shmutalov
Last active September 25, 2017 09:55
Show Gist options
  • Save shmutalov/15d75cbb93a2bda56191ad820cc22a9f to your computer and use it in GitHub Desktop.
Save shmutalov/15d75cbb93a2bda56191ad820cc22a9f to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="UnGitter.Views.MenuPage">
<ContentPage.Padding>
<OnPlatform x:TypeArguments="Thickness">
<On Platform="iOS" Value="0, 20, 0, 0" />
<On Platform="Android" Value="0, 32, 0, 0" />
</OnPlatform>
</ContentPage.Padding>
<ContentPage.Resources>
<ResourceDictionary>
<Style TargetType="Button" x:Key="MenuButtonTpl">
<Setter Property="BackgroundColor" Value="Gray" />
<Setter Property="TextColor" Value="White" />
<Setter Property="BorderWidth" Value="0" />
<Setter Property="HeightRequest" Value="32" />
<Setter Property="HorizontalOptions" Value="StartAndExpand" />
</Style>
</ResourceDictionary>
</ContentPage.Resources>
<ContentPage.Content>
<Grid WidthRequest="256" BackgroundColor="Gray">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid Grid.Row="0" BackgroundColor="DarkGray">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackLayout Grid.Row="0" Orientation="Horizontal">
<!--<Image WidthRequest="48" HeightRequest="48" BackgroundColor="White" Margin="4" Source="{Null}" />-->
<BoxView WidthRequest="48" HeightRequest="48" BackgroundColor="White" Margin="4" />
</StackLayout>
<StackLayout Grid.Row="1">
<Label Text="Sherzod Mutalov" TextColor="White"/>
<Label Text="@shmutalov" TextColor="White"/>
</StackLayout>
</Grid>
<StackLayout Grid.Row="1">
<Button Text="New Room" Command="{Binding GoHomeCommand}" Style="{StaticResource MenuButtonTpl}"/>
<Button Text="Rooms" Command="{Binding GoSecondCommand}" Style="{StaticResource MenuButtonTpl}"/>
<Button Text="Settings" Style="{StaticResource MenuButtonTpl}"/>
<Button Text="About" Style="{StaticResource MenuButtonTpl}"/>
</StackLayout>
</Grid>
</ContentPage.Content>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment