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. MVVM Patter and databinding [modified]

MVVM Patter and databinding [modified]

Scheduled Pinned Locked Moved WPF
wpfquestiondebuggingregexarchitecture
4 Posts 4 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.
  • T Offline
    T Offline
    ToddHileHoffer
    wrote on last edited by
    #1

    I like the MVVM pattern and I have been keeping code in the ViewModel class. However, one thing is kicking my ass! When I make a mistake and the result of the databinding is not what I expect, I have no idea how to figure out what the hell is wrong! How do I debug xaml bidings? -- Modified Thursday, January 13, 2011 9:29 PM

    A P S 3 Replies Last reply
    0
    • T ToddHileHoffer

      I like the MVVM pattern and I have been keeping code in the ViewModel class. However, one thing is kicking my ass! When I make a mistake and the result of the databinding is not what I expect, I have no idea how to figure out what the hell is wrong! How do I debug xaml bidings? -- Modified Thursday, January 13, 2011 9:29 PM

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      The output window looks ot be your best bet! Very nice article here[^].

      The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick

      1 Reply Last reply
      0
      • T ToddHileHoffer

        I like the MVVM pattern and I have been keeping code in the ViewModel class. However, one thing is kicking my ass! When I make a mistake and the result of the databinding is not what I expect, I have no idea how to figure out what the hell is wrong! How do I debug xaml bidings? -- Modified Thursday, January 13, 2011 9:29 PM

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        I use a combination of PresentationTraceSources and Snoop to view the bindings. With Snoop you can quickly find out if the DataContext has been set, and you can also use it to view the bindings themselves (along with so many other useful features).

        I'm not a stalker, I just know things. Oh by the way, you're out of milk.

        Forgive your enemies - it messes with their heads

        My blog | My articles | MoXAML PowerToys | Onyx

        1 Reply Last reply
        0
        • T ToddHileHoffer

          I like the MVVM pattern and I have been keeping code in the ViewModel class. However, one thing is kicking my ass! When I make a mistake and the result of the databinding is not what I expect, I have no idea how to figure out what the hell is wrong! How do I debug xaml bidings? -- Modified Thursday, January 13, 2011 9:29 PM

          S Offline
          S Offline
          Soulus83
          wrote on last edited by
          #4

          Probably this can help WPF Inspector No experience with the product, but it's better than nothing! :-D

          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