1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-08 03:23:23 +00:00

BoxedView with LabelCell

This commit is contained in:
Kyle Spearrin
2019-04-04 22:28:03 -04:00
parent 2b2342bcad
commit 61e95e03c8
21 changed files with 2945 additions and 285 deletions

View File

@@ -1,4 +1,5 @@
using Bit.Core.Utilities;
using Xamarin.Forms;
namespace Bit.App.Pages
{
@@ -11,5 +12,7 @@ namespace Bit.App.Pages
get => _pageTitle;
set => SetProperty(ref _pageTitle, value);
}
public ContentPage Page { get; set; }
}
}

View File

@@ -4,21 +4,17 @@
x:Class="Bit.App.Pages.SettingsPage"
xmlns:pages="clr-namespace:Bit.App.Pages"
xmlns:controls="clr-namespace:Bit.App.Controls"
xmlns:bv="clr-namespace:Bit.App.Controls.BoxedView"
x:DataType="pages:SettingsPageViewModel"
Title="{Binding PageTitle}">
<ContentPage.BindingContext>
<pages:SettingsPageViewModel />
</ContentPage.BindingContext>
<StackLayout>
<!-- Place new controls here -->
<Label Text="Settings!"
HorizontalOptions="Center"
VerticalOptions="CenterAndExpand" />
<controls:FaLabel Text="&#xf2b9;"
HorizontalOptions="Center"
VerticalOptions="CenterAndExpand">
</controls:FaLabel>
</StackLayout>
<bv:BoxedView>
<bv:BoxedSection Title="The Title" FooterText="The Footer">
<bv:LabelCell Title="The title" ValueText="The value" />
</bv:BoxedSection>
</bv:BoxedView>
</ContentPage>