Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6240305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:32:41+00:00 2026-05-24T11:32:41+00:00

I have UserControl bounded to my view model. View model implements IDataErrorInfo . UserConrol

  • 0

I have UserControl bounded to my view model. View model implements IDataErrorInfo. UserConrol has Validation.ErrorTemplate. In this template I use converter to show tooltip with errors:

<UserControl.Style>
    <Style TargetType="{x:Type UserControl}">
        <Setter Property="Validation.ErrorTemplate">
            <Setter.Value>
                <ControlTemplate>
                    <DockPanel>
                        <AdornedElementPlaceholder x:Name="adorner">
                            <Image x:Name="imgError"
                                       Width="32"
                                       Height="32"
                                       Margin="5"
                                       HorizontalAlignment="Left"
                                       VerticalAlignment="Bottom"
                                       ToolTip="{Binding ElementName=adorner,Path=AdornedElement.(Validation.Errors),Converter={StaticResource ValidationErrors2TooltipConverter},ConverterParameter='Couldn't save hour work:'}"
                                       Source="{StaticResource ErrorDrawingImage}" />
                        </AdornedElementPlaceholder>
                    </DockPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</UserControl.Style>

When I change some property (for instance: ComboBox‘s selection), the number of error should change, but it doesn’t. I couldn’t find a way to refresh errors in ToolTip.

Questions:

  1. How could I refresh errors in ToolTip.
  2. Validation works fine for UserControl, but doesn’t work for components inside it. I defined Validation.ErrorTemplate‘s for components in UserControl, but they are not visible, however controls bounded to view models (with IDataErrorInfo).
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T11:32:42+00:00Added an answer on May 24, 2026 at 11:32 am

    The validation pattern must be applied for each control inside your UserControl. There’s no “inheritance”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have an usercontrol that has a public event. when i use this user
I have a usercontrol that has several public properties. These properties automatically show up
I have a UserControl in my Asp.net project that has a public property. I
I have a UserControl (XAML below) that has a ListBox that I want to
I have UserControl, named thisUserControl , it has two controls as shown in the
I have a usercontrol that I want to use as a ListBoxItem. <ListBox.ItemTemplate> <DataTemplate>
I have a usercontrol which overrides the property Text. But this property is not
I have a usercontrol in ASP.Net featuring a button that I use to postback.
I have a UserControl with something that does some background work. When thing has
I have a usercontrol that provides voting buttons (for a SO type voting model)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.