about summary refs log tree commit diff
path: root/MatrixRoomUtils.Desktop/LoginWindow.axaml
blob: fc0ee6f9a81c055694f94dbf86b4c2a73d1014d0 (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
<Window 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:desktop="clr-namespace:MatrixRoomUtils.Desktop"
        mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
        Title="LoginWindow"
        x:Class="MatrixRoomUtils.Desktop.LoginWindow"
        x:DataType="desktop:LoginWindow"
        DataContext="{Binding $self}"
        SizeToContent="WidthAndHeight" CanResize="False"
        MinWidth="250">
    <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>
    </StackPanel>
</Window>