Advertisement
mekasu0124

Untitled

Mar 16th, 2024
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.94 KB | None | 0 0
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2.             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3.             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4.             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5.              xmlns:vm="using:MakeMyProject.ViewModels"
  6.             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="750"
  7.             x:Class="MakeMyProject.Views.LoginView"
  8.              x:DataType="vm:LoginViewModel"
  9.              Background="{DynamicResource Background}">
  10.  
  11.     <Design.DataContext>
  12.         <vm:LoginViewModel />
  13.     </Design.DataContext>
  14.  
  15.     <UserControl.Styles>
  16.         <StyleInclude Source="/Styles/LoginViewStyles.axaml" />
  17.     </UserControl.Styles>
  18.  
  19.     <Border Classes="LoginBorder">
  20.         <Grid RowDefinitions="Auto, *">
  21.            
  22.             <Label Classes="Title" Grid.Row="0" Content="{Binding Title}" />
  23.  
  24.             <Grid Grid.Row="1" RowDefinitions="Auto,*,*">
  25.                 <Border Classes="LoginBorder2" Grid.Row="0">
  26.                     <Grid ColumnDefinitions="Auto, *" RowDefinitions="*,*">
  27.                        
  28.                         <Label Classes="InputLabel" Grid.Column="0" Grid.Row="0" Content="Username" />
  29.  
  30.                         <TextBox Classes="LoginInput"
  31.                                  Grid.Column="1"
  32.                                  Grid.Row="0"
  33.                                  Text="{Binding Username}"
  34.                                  ToolTip.ShowDelay="500"
  35.                                  ToolTip.Placement="{Binding RelativeSource={RelativeSource Self}}">
  36.                             <ToolTip>
  37.                                 <StackPanel>
  38.                                     <Label>Usernames</Label>
  39.                                     <Label>
  40.                                         Username Must Be At Least 8 Characters In Length,
  41.                                         And Must Have At Least 1 Upper Case Letter,
  42.                                         1 Lower Case Letter, And 1 Number.
  43.                                     </Label>
  44.                                 </StackPanel>
  45.                             </ToolTip>
  46.                         </TextBox>
  47.  
  48.                         <Label Classes="InputLabel" Grid.Column="0" Grid.Row="1" Content="Password" />
  49.  
  50.                         <TextBox Classes="LoginInput"
  51.                                  Grid.Column="1"
  52.                                  Grid.Row="1"
  53.                                  Text="{Binding Password}"
  54.                                  PasswordChar="*"
  55.                                  ToolTip.ShowDelay="500"
  56.                                  ToolTip.Placement="{Binding RelativeSource={RelativeSource Self}}">
  57.                             <ToolTip>
  58.                                 <StackPanel>
  59.                                     <Label>Passwords</Label>
  60.                                     <Label>
  61.                                         Password Must Be At Least 8 Characters In Length,
  62.                                         And Must Have At Least 1 Upper Case Letter,
  63.                                         1 Lower Case Letter, 1 Number, And 1 Special
  64.                                         Character Such As: !, @, #, $, %, ^, or _
  65.                                     </Label>
  66.                                 </StackPanel>
  67.                             </ToolTip>
  68.                         </TextBox>
  69.                     </Grid>
  70.                 </Border>
  71.  
  72.                 <TextBox Classes="Error" Grid.Row="1" IsVisible="{Binding IsError}" Text="{Binding ErrorText}" />
  73.  
  74.                 <TextBox Classes="Success" Grid.Row="1" IsVisible="{Binding Success}" Text="{Binding SuccessText}" />
  75.  
  76.                 <Grid Grid.Row="2" ColumnDefinitions="*,*">
  77.                    
  78.                     <Button Classes="LoginButton" Grid.Column="0" Content="Exit" Command="{Binding Cancel}" />
  79.                    
  80.                     <Button Classes="LoginButton" Grid.Column="1" Content="Login" Command="{Binding Ok}" />
  81.                 </Grid>
  82.             </Grid>
  83.         </Grid>
  84.     </Border>
  85.    
  86. </UserControl>
  87.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement