mirror of
https://github.com/bitwarden/mobile
synced 2026-01-08 03:23:23 +00:00
BoxedView with LabelCell
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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=""
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user