Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Displaying Validation

Displaying Validation

Scheduled Pinned Locked Moved WPF
csharpvisual-studiowpfhelpquestion
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cjb110
    wrote on last edited by
    #1

    I've been looking at how I can display validation failures in WPF. The examples I've been looking at, typically create a style based on a control type. Is the approach really to create a 'validation error' style for every control type? Isn't there a more generic approach? Also some of my screens have grids, and I've worked out how I can either show the validation template per cell or the row, but I'm not sure I like the approach. Is it possible to display the validation messages in a completely different location from the control(or controls), rather than adorned to them, say a textblock at the bottom of the screen. I suppose the type of presentation I'd like is similar to the way Visual Studio has the errors window that gathers all the problems in one place.

    C 1 Reply Last reply
    0
    • C cjb110

      I've been looking at how I can display validation failures in WPF. The examples I've been looking at, typically create a style based on a control type. Is the approach really to create a 'validation error' style for every control type? Isn't there a more generic approach? Also some of my screens have grids, and I've worked out how I can either show the validation template per cell or the row, but I'm not sure I like the approach. Is it possible to display the validation messages in a completely different location from the control(or controls), rather than adorned to them, say a textblock at the bottom of the screen. I suppose the type of presentation I'd like is similar to the way Visual Studio has the errors window that gathers all the problems in one place.

      C Offline
      C Offline
      cjb110
      wrote on last edited by
      #2

      Ok found this article showing how to do the style once, then use "based on" to apply it to other controls.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups