25 lines
1.3 KiB
XML
25 lines
1.3 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
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:vm="using:Flawless.Client.ViewModels"
|
|
mc:Ignorable="d" d:DesignWidth="380" d:DesignHeight="540"
|
|
x:Class="Flawless.Client.Views.LoginPageView"
|
|
x:DataType="vm:LoginPageViewModel">
|
|
|
|
<Design.DataContext>
|
|
<!-- This only sets the DataContext for the previewer in an IDE,
|
|
to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
|
|
<vm:LoginPageViewModel/>
|
|
</Design.DataContext>
|
|
|
|
<StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Center" Spacing="10">
|
|
<TextBox Watermark="Username" Text="{Binding Username, Mode=TwoWay}"/>
|
|
<TextBox Watermark="Password" PasswordChar="*" Text="{Binding Password, Mode=TwoWay}"/>
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Spacing="10">
|
|
<Button Content="Login" Command="{Binding LoginCommand}"/>
|
|
<Button Content="Register" Command="{Binding RegisterCommand}"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</UserControl>
|