Created
June 17, 2020 10:11
-
-
Save ljoshenjka/29bb667118d4322b8d436ccdd6fe0d60 to your computer and use it in GitHub Desktop.
MenuPage xaml
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
<?xml version="1.0" encoding="utf-8" ?> | |
<basePage:NavigationAwareBaseContentPage | |
xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
x:Class="testapp.Portable.Pages.MenuPage" | |
xmlns:basePage="clr-namespace:test.Portable.Pages" | |
xmlns:resources="clr-namespace:test.Portable.Resources" | |
xmlns:buttons="clr-namespace:Syncfusion.XForms.Buttons;assembly=Syncfusion.Buttons.XForms" | |
BackgroundColor="{StaticResource ApplicationBlack}"> | |
<ContentPage.Content> | |
<Grid | |
RowSpacing="0"> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="5*"/> | |
<RowDefinition Height="Auto"/> | |
<RowDefinition Height="3*"/> | |
</Grid.RowDefinitions> | |
<StackLayout | |
Orientation="Vertical" | |
VerticalOptions="CenterAndExpand" | |
Grid.Row="0"> | |
<Label | |
Margin="20,0,20,0" | |
Text="{Binding UserName}" | |
Style="{StaticResource WhiteLeftExpandedLightFont_34}" | |
MaxLines="2" | |
LineBreakMode="TailTruncation"/> | |
<buttons:SfButton | |
Text="{x:Static resources:AppResources.MyProfileMenuString}" | |
FontSize="15" | |
Padding="20,0,0,0" | |
Command="{Binding OnMyProfileCommand}" | |
x:Name="myProfileButton"> | |
<VisualStateManager.VisualStateGroups> | |
<VisualStateGroup x:Name="CommonStates"> | |
<VisualState x:Name="Normal"> | |
<VisualState.Setters> | |
<Setter Property="Style" | |
Value="{StaticResource BlackMenuButton}" /> | |
<Setter Property="TextColor" | |
Value="{StaticResource ApplicationWhisperGray}" /> | |
</VisualState.Setters> | |
</VisualState> | |
<VisualState x:Name="Pressed"> | |
<VisualState.Setters> | |
<Setter Property="Style" | |
Value="{StaticResource PressedBlackMenuButton}" /> | |
<Setter Property="TextColor" | |
Value="{StaticResource SunflowerYellow}" /> | |
</VisualState.Setters> | |
</VisualState> | |
</VisualStateGroup> | |
</VisualStateManager.VisualStateGroups> | |
</buttons:SfButton> | |
</StackLayout> | |
<StackLayout | |
Spacing="0" | |
Grid.Row="1" | |
Orientation="Vertical"> | |
<buttons:SfButton | |
Text="{x:Static resources:AppResources.GoalsString}" | |
Padding="20,0,0,0" | |
Command="{Binding OnGoalsCommand}" | |
x:Name="goalsButton"> | |
<VisualStateManager.VisualStateGroups> | |
<VisualStateGroup x:Name="CommonStates"> | |
<VisualState x:Name="Normal"> | |
<VisualState.Setters> | |
<Setter Property="Style" | |
Value="{StaticResource BlackMenuButton}" /> | |
</VisualState.Setters> | |
</VisualState> | |
<VisualState x:Name="Pressed"> | |
<VisualState.Setters> | |
<Setter Property="Style" | |
Value="{StaticResource PressedBlackMenuButton}" /> | |
</VisualState.Setters> | |
</VisualState> | |
</VisualStateGroup> | |
</VisualStateManager.VisualStateGroups> | |
</buttons:SfButton> | |
<BoxView | |
Margin="20,0,0,0" | |
HeightRequest="1" | |
HorizontalOptions="FillAndExpand" | |
BackgroundColor="{StaticResource ApplicationHintGray}"/> | |
<buttons:SfButton | |
Text="{x:Static resources:AppResources.LearningCenterString}" | |
Padding="20,0,0,0" | |
Command="{Binding OnLearningCenterCommand}" | |
x:Name="learningCenterButton"> | |
<VisualStateManager.VisualStateGroups> | |
<VisualStateGroup x:Name="CommonStates"> | |
<VisualState x:Name="Normal"> | |
<VisualState.Setters> | |
<Setter Property="Style" | |
Value="{StaticResource BlackMenuButton}" /> | |
</VisualState.Setters> | |
</VisualState> | |
<VisualState x:Name="Pressed"> | |
<VisualState.Setters> | |
<Setter Property="Style" | |
Value="{StaticResource PressedBlackMenuButton}" /> | |
</VisualState.Setters> | |
</VisualState> | |
</VisualStateGroup> | |
</VisualStateManager.VisualStateGroups> | |
</buttons:SfButton> | |
<BoxView | |
Margin="20,0,0,0" | |
HeightRequest="1" | |
HorizontalOptions="FillAndExpand" | |
BackgroundColor="{StaticResource ApplicationHintGray}"/> | |
<buttons:SfButton | |
x:Name="settingsButton" | |
Text="{x:Static resources:AppResources.SettingsString}" | |
Padding="20,0,0,0" | |
Command="{Binding OnSettingCommand}"> | |
<VisualStateManager.VisualStateGroups> | |
<VisualStateGroup x:Name="CommonStates"> | |
<VisualState x:Name="Normal"> | |
<VisualState.Setters> | |
<Setter Property="Style" | |
Value="{StaticResource BlackMenuButton}" /> | |
</VisualState.Setters> | |
</VisualState> | |
<VisualState x:Name="Pressed"> | |
<VisualState.Setters> | |
<Setter Property="Style" | |
Value="{StaticResource PressedBlackMenuButton}" /> | |
</VisualState.Setters> | |
</VisualState> | |
</VisualStateGroup> | |
</VisualStateManager.VisualStateGroups> | |
</buttons:SfButton> | |
<BoxView | |
HeightRequest="1" | |
Margin="20,0,0,0" | |
HorizontalOptions="FillAndExpand" | |
BackgroundColor="{StaticResource ApplicationHintGray}"/> | |
</StackLayout> | |
<StackLayout | |
VerticalOptions="EndAndExpand" | |
Spacing="0" | |
Grid.Row="2"> | |
<buttons:SfButton | |
Text="{x:Static resources:AppResources.SignOutString}" | |
FontSize="15" | |
Padding="20,0,0,0" | |
Command="{Binding OnSignOutCommand}" | |
x:Name="signoutButton"> | |
<VisualStateManager.VisualStateGroups> | |
<VisualStateGroup x:Name="CommonStates"> | |
<VisualState x:Name="Normal"> | |
<VisualState.Setters> | |
<Setter Property="Style" | |
Value="{StaticResource BlackMenuButton}" /> | |
<Setter Property="TextColor" | |
Value="{StaticResource ApplicationWhisperGray}" /> | |
</VisualState.Setters> | |
</VisualState> | |
<VisualState x:Name="Pressed"> | |
<VisualState.Setters> | |
<Setter Property="Style" | |
Value="{StaticResource PressedBlackMenuButton}" /> | |
<Setter Property="TextColor" | |
Value="{StaticResource SunflowerYellow}" /> | |
</VisualState.Setters> | |
</VisualState> | |
</VisualStateGroup> | |
</VisualStateManager.VisualStateGroups> | |
</buttons:SfButton> | |
<BoxView | |
HeightRequest="1" | |
HorizontalOptions="FillAndExpand" | |
BackgroundColor="{StaticResource ApplicationHintGray}"/> | |
</StackLayout> | |
</Grid> | |
</ContentPage.Content> | |
</basePage:NavigationAwareBaseContentPage> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment