Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <UserControl 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:vm="using:MeksMathGame.ViewModels"
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
- x:Class="MeksMathGame.Views.SelectUserView"
- x:DataType="vm:SelectUserViewModel"
- Background="{DynamicResource ResourceKey=Purple}">
- <Design.DataContext>
- <vm:SelectUserViewModel />
- </Design.DataContext>
- <UserControl.Styles>
- <StyleInclude Source="/Styles/SelectUserStyle.axaml" />
- </UserControl.Styles>
- <Grid ColumnDefinitions="*,*">
- <Border Grid.Column="0" Classes="SelectUserBorder">
- <Grid RowDefinitions="*,*,*">
- <Label Classes="SelectUserLabel" Grid.Row="0" Content="Select A Username"/>
- <ComboBox Classes="SelectUserCombo" Grid.Row="1" SelectedItem="{Binding SelectedUsername}"
- ItemsSource="{Binding CurrentUsers}" />
- <Button Classes="SelectUserButton" Grid.Row="3" Content="Login" Command="{Binding SendSelectUser}" />
- </Grid>
- </Border>
- <Border Grid.Column="1" Classes="SelectUserBorder">
- <Grid RowDefinitions="*,*,*">
- <Label Classes="SelectUserLabel" Grid.Row="0" Content="Create A New User" />
- <TextBox Classes.SelectedUserInput="{Binding IsValid}"
- Classes.Wrong="{Binding !IsValid}"
- Grid.Row="1"
- Text="{Binding NewUser}" />
- <Label Classes.Wrong="{Binding !IsValid}"
- Grid.Row="2"
- Content="That Username Already Exists!"
- IsVisible="{Binding !IsValid}"/>
- <Button Classes="SelectUserButton"
- Grid.Row="2"
- Content="Create User"
- Command="{Binding SendNewUser}"
- IsVisible="{Binding IsValid}" />
- </Grid>
- </Border>
- </Grid>
- </UserControl>
Advertisement
Add Comment
Please, Sign In to add comment