We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I don't want the error message text, just the red outer box, so I set the error template to null:
<Style BasedOn="{StaticResource TextBoxPlusBaseStyle}" TargetType="{x:Type hc:TextBox}"> <Setter Property="Validation.ErrorTemplate" Value="{x:Null}" /> </Style>
HandyControl is as expected, but the HandyControls Border does not turn red brush.
HandyControls (Custom version) 3.4.5
Visual Studio 2022
.Net 7.0
Windows 11 (22621)
No response
The text was updated successfully, but these errors were encountered:
report it in original repo
Sorry, something went wrong.
I found the solution:
<Style x:Key="MyTextBoxStyle" BasedOn="{StaticResource TextBoxPlusBaseStyle}" TargetType="{x:Type hc:TextBox}"> <Setter Property="ToolTip" Value="{Binding Text, RelativeSource={RelativeSource Self}}" /> <!-- Hide the validation error message, this solution does not work for ComboBox. --> <Setter Property="Validation.ErrorTemplate" Value="{x:Null}" /> <Setter Property="b:TripleClickToSelectAllBehavior.Enabled" Value="True" /> <Setter Property="hc:InfoElement.ShowClearButton" Value="{Binding IsReadOnly, Converter={StaticResource Boolean2BooleanReConverter}, RelativeSource={RelativeSource Mode=Self}}" /> <Setter Property="hc:TitleElement.TitlePlacement" Value="Left" /> <Style.Triggers> <Trigger Property="Validation.HasError" Value="True"> <Setter Property="ToolTip" Value="{Binding (Validation.Errors), RelativeSource={RelativeSource Self}, Converter={StaticResource ValidationErrorsToolTipConverter}}" /> </Trigger> </Style.Triggers> </Style>
No branches or pull requests
Describe the bug
I don't want the error message text, just the red outer box, so I set the error template to null:
HandyControl is as expected, but the HandyControls Border does not turn red brush.
NuGet package version
HandyControls (Custom version) 3.4.5
IDE
Visual Studio 2022
Framework type
.Net 7.0
Windows version
Windows 11 (22621)
Additional context
No response
The text was updated successfully, but these errors were encountered: