-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathMainPageButtons.xaml
More file actions
16 lines (16 loc) · 1.65 KB
/
MainPageButtons.xaml
File metadata and controls
16 lines (16 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0" encoding="UTF-8"?>
<StackLayout xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="Saplin.CPDT.UICore.MainPageButtons" xmlns:ctrl="clr-namespace:Saplin.CPDT.UICore.Controls" xmlns:local="clr-namespace:Saplin.CPDT.UICore" xmlns:vm="clr-namespace:Saplin.CPDT.UICore.ViewModels"
HorizontalOptions="Center" Orientation="Horizontal" Spacing="0" Padding="0,15,0,0"
BindingContext="{x:Static vm:ViewModelContainer.NavigationViewModel}">
<Button Text="{Binding Source={x:Static vm:ViewModelContainer.L11n}, Path=Database}" Style="{x:StaticResource Key=ButtonStyle}" Command="{Binding ShowDb}" ctrl:KeyPress.CommandOnKeyPress="True" IsEnabled="{Binding Source={x:Static vm:ViewModelContainer.ResultsDbViewModel}, Path=IsEnabled}" />
<Button Text="{Binding Source={x:Static vm:ViewModelContainer.L11n}, Path=OptionsButton}" Style="{x:StaticResource Key=ButtonStyle}" Command="{Binding ShowOptions}" ctrl:KeyPress.CommandOnKeyPress="True" />
<Button x:Name="refreshButton" Text="{Binding Source={x:Static vm:ViewModelContainer.L11n}, Path=RefreshButton}" Style="{x:StaticResource Key=ButtonStyle}" Command="{Binding Refresh}" ctrl:KeyPress.CommandOnKeyPress="True">
<Button.IsVisible>
<OnPlatform x:TypeArguments="x:Boolean">
<On Platform="Android" Value="False" />
<On Platform="macOS, WPF" Value="True" />
</OnPlatform>
</Button.IsVisible>
</Button>
<Button Text="[H, ?]" Style="{x:StaticResource Key=ButtonStyle}" WidthRequest="70" Command="{Binding ShowAbout}" ctrl:KeyPress.CommandOnKeyPress="True" />
</StackLayout>