about summary refs log tree commit diff
path: root/ModerationClient/Views/LoginView.axaml
blob: 10e97c65ff7b6afe3e75fba8f494437fb1555be9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<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:views="clr-namespace:ModerationClient.Views"
             xmlns:viewModels="clr-namespace:ModerationClient.ViewModels"
             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
             x:Class="ModerationClient.Views.LoginView"
             x:DataType="viewModels:LoginViewModel">
             <!-- DataContext="{Binding $self}"> -->
             <!-- DataContext="{Binding $self}"> -->
    <StackPanel>
        <Label>Log in</Label>
        <StackPanel Orientation="Horizontal">
            <Label Width="100">User ID</Label>
            <TextBox MinWidth="250" Text="{Binding Username, Mode=TwoWay}" />
        </StackPanel>
        <StackPanel Orientation="Horizontal">
            <Label Width="100">Password</Label>
            <MaskedTextBox MinWidth="250" PasswordChar="*" Text="{Binding Password, Mode=TwoWay}" />
        </StackPanel>
        <Button Click="Login">Login</Button>
        <TextBlock Text="{CompiledBinding Exception}" Foreground="#ff3333"/>
    </StackPanel>
</UserControl>