Partial views, filling up UI

This commit is contained in:
2025-08-17 17:47:32 +02:00
parent eac181fa63
commit ba8acd09e4
6 changed files with 187 additions and 39 deletions

View File

@ -2,31 +2,22 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="AdventureWorks.MAUI.Views.UserDetailView"
xmlns:partial="clr-namespace:AdventureWorks.MAUI.ViewsPartial"
Title="User Information">
<Grid RowDefinitions="Auto,Auto,Auto, Auto, Auto,Auto, Auto, Auto , Auto"
<Grid RowDefinitions="Auto, Auto, Auto,Auto, Auto, Auto , Auto"
ColumnDefinitions="Auto, *"
Style="{StaticResource Grid.Page}">
<Label Grid.Row="0"
Grid.ColumnSpan="2"
Text="User Information"
FontSize="Title" />
<partial:HeaderView Grid.Row="0"
Grid.ColumnSpan="2"
ViewTitle="User Information"
ViewDescription="Use this Screen to Modify User Information." />
<Label Grid.Row="1"
Grid.ColumnSpan="2"
Text="Use this Screen to Modify User Information."
FontSize="Body" />
<BoxView Grid.Row="2"
Grid.ColumnSpan="2"
Margin="0,0,0,20"
HeightRequest="1"
Color="Black" />
<Label Grid.Row="3"
Text="Login ID" />
<VerticalStackLayout Grid.Row="3"
Grid.Column="1">
<Entry Text=""
@ -34,22 +25,24 @@
<Label FontSize="Micro"
Text="Please use a combination of letters and numbers." />
</VerticalStackLayout>
<Label Grid.Row="4"
<Label Grid.Row="2"
Text="First Name" />
<Entry Grid.Row="2"
Grid.Column="1"
Text=""/>
<Label Grid.Row="3"
Text="Last Name" />
<Entry Grid.Row="3"
Grid.Column="1"
Text=""/>
<Label Grid.Row="4"
Text="Email Address" />
<Entry Grid.Row="4"
Grid.Column="1"
Text=""/>
<Label Grid.Row="5"
Text="Last Name" />
<Entry Grid.Row="5"
Grid.Column="1"
Text=""/>
<Label Grid.Row="6"
Text="Email Address" />
<Entry Grid.Row="6"
Grid.Column="1"
Text=""/>
<FlexLayout Grid.Row="7"
<Label Grid.Row="5" Text="Is Enrolled ?"/>
<FlexLayout Grid.Row="5"
Grid.Column="1"
Wrap="Wrap"
Direction="Row">
@ -70,7 +63,7 @@
<CheckBox IsChecked="True"/>
</HorizontalStackLayout>
</FlexLayout>
<HorizontalStackLayout Grid.Row="8"
<HorizontalStackLayout Grid.Row="6"
Grid.Column="1"
Spacing="5">
<Button Text="Save" />