I am making a login form for my application, but my checkbox refuses to work for some reason.
I receive no error or exception, it just doesn't do anything.
My ViewModel works, because i can login and it does update the Email TextBox
using INotifyPropertyChanged
.
UserControl
<UserControl x:Class="Test_WPF_Api_Application.Views.UserControls.Login"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Test_WPF_Api_Application.Views.UserControls"
mc:Ignorable="d">
<Grid Margin="15 0 15 25">
<StackPanel Width="200">
<Label>E-mail:</Label>
<TextBox Text="{Binding Email}"/>
<Label>Password:</Label>
<PasswordBox x:Name="PassBox"/>
<WrapPanel Margin="0 5">
<Button Style="{StaticResource HighlightedButton}" BorderThickness="0" Content="Login" Padding="25 5 25 7" Command="{Binding AttemptLoginCommand}" CommandParameter="{Binding ElementName=PassBox}"/>
<CheckBox Margin="10 0 0 0" VerticalAlignment="Center" Content="Remember me"/>
</WrapPanel>
</StackPanel>
</Grid>
</UserControl>
Does anyone have a clue to what might be going on.
If you need any information, I would be happy to supply them.
Aucun commentaire:
Enregistrer un commentaire