csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
2.4 KiB
58 lines
2.4 KiB
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:controls="using:Generators.Sandbox.Controls"
|
|
xmlns:vm="clr-namespace:Generators.Sandbox.ViewModels"
|
|
x:Class="Generators.Sandbox.Controls.SignUpView"
|
|
x:DataType="vm:SignUpViewModel">
|
|
<UserControl.Styles>
|
|
<Style Selector="DataValidationErrors">
|
|
<Setter Property="ErrorTemplate">
|
|
<Setter.Value>
|
|
<DataTemplate />
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</UserControl.Styles>
|
|
<StackPanel>
|
|
<controls:CustomTextBox Margin="0 10 0 0"
|
|
x:Name="UserNameTextBox"
|
|
Text="{Binding UserName}"
|
|
Watermark="Please, enter user name..."
|
|
UseFloatingWatermark="True" />
|
|
<TextBlock x:Name="UserNameValidation"
|
|
Text="{Binding UserNameValidation}"
|
|
Foreground="Red"
|
|
FontSize="12" />
|
|
<TextBox Margin="0 10 0 0"
|
|
x:Name="PasswordTextBox"
|
|
Text="{Binding Password}"
|
|
Watermark="Please, enter your password..."
|
|
UseFloatingWatermark="True"
|
|
PasswordChar="*" />
|
|
<TextBlock x:Name="PasswordValidation"
|
|
Text="{Binding PasswordValidation}"
|
|
Foreground="Red"
|
|
FontSize="12" />
|
|
<TextBox Margin="0 10 0 0"
|
|
x:Name="ConfirmPasswordTextBox"
|
|
Text="{Binding ConfirmPassword}"
|
|
Watermark="Please, confirm the password..."
|
|
UseFloatingWatermark="True"
|
|
PasswordChar="*" />
|
|
<TextBlock x:Name="ConfirmPasswordValidation"
|
|
Text="{Binding ConfirmPasswordValidation}"
|
|
TextWrapping="Wrap"
|
|
Foreground="Red"
|
|
FontSize="12" />
|
|
<TextBlock Text="Press the button below to sign up." />
|
|
<Button Margin="0 10 0 5"
|
|
Content="Sign up"
|
|
Command="{Binding SignUp}"
|
|
x:Name="SignUpButton" />
|
|
<TextBlock x:Name="CompoundValidation"
|
|
TextWrapping="Wrap"
|
|
Foreground="Red"
|
|
FontSize="12"
|
|
Text="{Binding CompoundValidation}" />
|
|
</StackPanel>
|
|
</UserControl>
|
|
|