<!--
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
//
//*********************************************************
-->
<ui:Page
    x:Class="SamplesCommon.SamplePages.SampleCompactSizingPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:ui="http://schemas.modernwpf.com/2019"
    mc:Ignorable="d">

    <Page.Resources>
        <ResourceDictionary Source="pack://application:,,,/ModernWpf;component/DensityStyles/Compact.xaml" />
    </Page.Resources>

    <Grid Background="{DynamicResource ApplicationPageBackgroundThemeBrush}">
        <ui:SimpleStackPanel Spacing="4">
            <TextBlock x:Name="HeaderBlock" Text="Compact Size" FontSize="18"/>
            <TextBox ui:ControlHelper.Header="First Name:" x:Name="txtfirstName" />
            <TextBox ui:ControlHelper.Header="Last Name:" x:Name="txtLastName"  />
            <PasswordBox ui:ControlHelper.Header="Password:" />
            <PasswordBox ui:ControlHelper.Header="Confirm Password:" />
            <DatePicker ui:ControlHelper.Header="Pick a date" HorizontalAlignment="Stretch" />
        </ui:SimpleStackPanel>
    </Grid>
</ui:Page>
