1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-06-25 10:26:02 +02:00
bitwarden-mobile/src/App/Pages/Generator/GeneratorPage.xaml

57 lines
2.2 KiB
Plaintext
Raw Normal View History

2019-03-28 22:10:10 +01:00
<?xml version="1.0" encoding="utf-8" ?>
<pages:BaseContentPage
2019-03-28 22:10:10 +01:00
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
2019-03-29 04:52:33 +01:00
x:Class="Bit.App.Pages.GeneratorPage"
xmlns:pages="clr-namespace:Bit.App.Pages"
xmlns:controls="clr-namespace:Bit.App.Controls"
2019-04-22 19:47:45 +02:00
xmlns:u="clr-namespace:Bit.App.Utilities"
2019-03-29 14:16:22 +01:00
x:DataType="pages:GeneratorPageViewModel"
2019-03-29 04:52:33 +01:00
Title="{Binding PageTitle}">
2019-03-28 22:10:10 +01:00
<ContentPage.BindingContext>
2019-03-29 04:52:33 +01:00
<pages:GeneratorPageViewModel />
2019-03-28 22:10:10 +01:00
</ContentPage.BindingContext>
<ContentPage.ToolbarItems>
<ToolbarItem Text="{u:I18n Select}"
Clicked="Select_Clicked"
Order="Primary"
x:Name="_selectItem" />
<ToolbarItem Text="{u:I18n PasswordHistory}"
Clicked="History_Clicked"
Order="Secondary" />
</ContentPage.ToolbarItems>
2019-03-28 22:10:10 +01:00
<StackLayout Spacing="20">
<StackLayout StyleClass="box">
<controls:MonoLabel
Text="{Binding Password}"
Margin="0, 20"
StyleClass="text-lg"
HorizontalOptions="Center" />
<StackLayout Orientation="Horizontal">
<Button Text="{u:I18n RegeneratePassword}"
HorizontalOptions="FillAndExpand"
Clicked="Regenerate_Clicked"></Button>
<Button Text="{u:I18n CopyPassword}"
HorizontalOptions="FillAndExpand"
Clicked="Copy_Clicked"></Button>
</StackLayout>
<StackLayout StyleClass="box-row-header">
<Label Text="{u:I18n Options}"
StyleClass="box-header, box-header-platform" />
</StackLayout>
<StackLayout StyleClass="box-row, box-row-input">
<Label
Text="{u:I18n Type}"
StyleClass="box-label" />
<Picker
ItemsSource="{Binding TypeOptions, Mode=OneTime}"
SelectedIndex="{Binding TypeSelectedIndex}"
StyleClass="box-value" />
</StackLayout>
</StackLayout>
2019-03-28 22:10:10 +01:00
</StackLayout>
</pages:BaseContentPage>