blob: ecfa3f5097ceddda038686ad92d9c3d025e9f869 (
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:MatrixUtils.Desktop"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
Title="LoginWindow"
x:Class="MatrixUtils.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>
|