2019-03-29 00:10:10 +03:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2019-05-13 19:13:23 +03:00
|
|
|
<pages:BaseContentPage
|
2019-03-29 00:10:10 +03:00
|
|
|
xmlns="http://xamarin.com/schemas/2014/forms"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
2019-03-29 06:52:33 +03:00
|
|
|
x:Class="Bit.App.Pages.GeneratorPage"
|
|
|
|
xmlns:pages="clr-namespace:Bit.App.Pages"
|
2019-05-13 19:13:23 +03:00
|
|
|
xmlns:controls="clr-namespace:Bit.App.Controls"
|
2019-04-22 20:47:45 +03:00
|
|
|
xmlns:u="clr-namespace:Bit.App.Utilities"
|
2019-03-29 16:16:22 +03:00
|
|
|
x:DataType="pages:GeneratorPageViewModel"
|
2019-03-29 06:52:33 +03:00
|
|
|
Title="{Binding PageTitle}">
|
2019-03-29 00:10:10 +03:00
|
|
|
<ContentPage.BindingContext>
|
2019-03-29 06:52:33 +03:00
|
|
|
<pages:GeneratorPageViewModel />
|
2019-03-29 00:10:10 +03:00
|
|
|
</ContentPage.BindingContext>
|
|
|
|
|
2019-05-13 19:13:23 +03:00
|
|
|
<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-29 00:10:10 +03:00
|
|
|
|
2019-05-13 19:13:23 +03: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-29 00:10:10 +03:00
|
|
|
</StackLayout>
|
|
|
|
|
2019-05-13 19:13:23 +03:00
|
|
|
</pages:BaseContentPage>
|