So I have this xaml line in my WPF project:
<PasswordBox x:Name="passwd" materialDesign:HintAssist.HelperText=""
materialDesign:HintAssist.Hint="Password" materialDesign:HintAssist.Background="#1A1F25"
materialDesign:HintAssist.Foreground="White" Padding="10" Margin="0 0 0 20"/>
And by clicking a button, my C# code has to check if the password is inputed correctly, otherwise it has to change HelperText into "Wrong". I have tried smth like this, but without any succes:
else if (user_password.Password.Length > 32 || user_password.Password.Length < 10)
{
MaterialDesignThemes.Wpf.HintAssist.HelperTextProperty = "Wrong!";
}