This is a migrated thread and some comments may be shown as answers.

Change PasswordBox Validation Template

1 Answer 573 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Geoffrey
Top achievements
Rank 1
Geoffrey asked on 10 Dec 2015, 09:06 AM
Hi,

I try to change the Validation.ErrorTemplate of PasswordBox.

1.<Style TargetType="PasswordBox" BasedOn="{StaticResource PasswordBoxStyle}">
2.       <Setter Property="Validation.ErrorTemplate" Value="{StaticResource ErrorTemplateStyle}" />
3.</Style>

But the two templates are displayed.

Why ?

PS : It works for other control like RadWatermarkTextBox but not for MS controls.

Best regards,

Geoffrey

1 Answer, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 11 Dec 2015, 09:17 AM
Hello Geoffrey,

Unfortunately, PasswordBox’s Password property is not a dependency property and you can not use Validation.ErrorTemplate like in RadWatermarkTextBox. Please take a look at the following discussion
where you can find a workaround for this issue.

I hope it helps.

Regards,
Masha
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Geoffrey
Top achievements
Rank 1
Answers by
Masha
Telerik team
Share this question
or