|
<Window x:Class="GettingStartedDemo.LoginWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Login" SizeToContent="WidthAndHeight" WindowStartupLocation="CenterScreen">
<StackPanel>
<TextBlock Text="Default Login: 'Demo' / 'Demo123'" Margin="10" HorizontalAlignment="Center" />
<Grid Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="5" />
<ColumnDefinition MinWidth="150" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock Text="User Name:" VerticalAlignment="Center" />
<TextBox Grid.Column="2" x:Name="tbUserName" Margin="5" />
<TextBlock Grid.Row="1" Text="Password:" VerticalAlignment="Center" />
<PasswordBox Grid.Row="1" Grid.Column="2" x:Name="tbPassword" Margin="5" />
</Grid>
<UniformGrid HorizontalAlignment="Center" Columns="2" Margin="5">
<Button x:Name="btnLogin" Click="btnLogin_Click" Content="Login" Margin="5" IsDefault="True" />
<Button x:Name="btnCancel" Click="btnCancel_Click" Content="Cancel" Margin="5" IsCancel="True" />
</UniformGrid>
</StackPanel>
</Window>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.