Re: Remove error adorner text from datetime picker

WPF

Windows Presentation Foundation controls

Remove error adorner text from datetime picker

  • rated by 0 users
  • This post has 1 Reply |
  • 1 Follower
  • How Do i remove the Error adorner textbox from the datetime picker?

    I changed the text in the resource file but the text box still appears, is there a way to not show the error adorner textbox?

    I tried to edit the control in blend so i opened selected edit a copy and make a template but i get a stacktrace error which basically says InnerExceptioin:Items collection must be empty before using itemssource.

     

     

     

  • I'm not sure that I understand the question. Default control template shows validation messages on errors. You can change template in any way. Don't use template copy created by Blend, Blend can't create exact copy, you might get errors.

    Every build and setup of C1Scheduler assembly contains folder with the full copy of source xaml. Find this folder and copy DateTimePicker template from there. Aero.NormalColor.xaml contains template for Aero Windows theme, Classic.xaml - for classic theme and WindowsXPDateTimePicker.xaml - for all Win XP themes.

Page 1 of 1 (2 items)