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. The Lounge
  3. VS2008 Beta 2 and the WPF editor

VS2008 Beta 2 and the WPF editor

Scheduled Pinned Locked Moved The Lounge
csharpwpfbeta-testingtutorialquestion
9 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.
  • B Offline
    B Offline
    besmel
    wrote on last edited by
    #1

    just trying it, is it just me or the editor is far from being usable ? I mean, it's very nice, but when I need to bind events from any control the only thing it can do is bind one event : example, insert a button, then Ctrl+Dbl click adds the click event and this seems the only event that can be managed from the editor...or I'm missing where it can be done ? tried the property window etc etc, windows form editor seems more powerful... what's your experience ?

    J C 2 Replies Last reply
    0
    • B besmel

      just trying it, is it just me or the editor is far from being usable ? I mean, it's very nice, but when I need to bind events from any control the only thing it can do is bind one event : example, insert a button, then Ctrl+Dbl click adds the click event and this seems the only event that can be managed from the editor...or I'm missing where it can be done ? tried the property window etc etc, windows form editor seems more powerful... what's your experience ?

      J Offline
      J Offline
      Josh Smith
      wrote on last edited by
      #2

      The visual designer still lacks in depth support for adding event handling methods for elements. IMO that does not render the designer "far from being usable" though. One thing to keep in mind is that whenever you are handling an element's events, consider whether you should be using a Command instead. It's generally better in WPF to handle user interactions via the routed Command system because it promotes a loose coupling between the visuals and application logic. Just my 2 cents.

      :josh: My WPF Blog[^] The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it. - Michelangelo (1475-1564)

      P 1 Reply Last reply
      0
      • J Josh Smith

        The visual designer still lacks in depth support for adding event handling methods for elements. IMO that does not render the designer "far from being usable" though. One thing to keep in mind is that whenever you are handling an element's events, consider whether you should be using a Command instead. It's generally better in WPF to handle user interactions via the routed Command system because it promotes a loose coupling between the visuals and application logic. Just my 2 cents.

        :josh: My WPF Blog[^] The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it. - Michelangelo (1475-1564)

        P Offline
        P Offline
        Patrick Etc
        wrote on last edited by
        #3

        Josh Smith wrote:

        It's generally better in WPF to handle user interactions via the routed Command system because it promotes a loose coupling between the visuals and application logic. Just my 2 cents.

        Hmm.. your ideas intrigue me, and I would like to subscribe to your newsletter - Err, sorry, channeled Homer Simpson for a second. Any plans on writing an article about routed Commands? :) I've looked at that a little bit but it seemed rather intimidating..

        J 3 Replies Last reply
        0
        • P Patrick Etc

          Josh Smith wrote:

          It's generally better in WPF to handle user interactions via the routed Command system because it promotes a loose coupling between the visuals and application logic. Just my 2 cents.

          Hmm.. your ideas intrigue me, and I would like to subscribe to your newsletter - Err, sorry, channeled Homer Simpson for a second. Any plans on writing an article about routed Commands? :) I've looked at that a little bit but it seemed rather intimidating..

          J Offline
          J Offline
          Josh Smith
          wrote on last edited by
          #4

          That might be a fun topic to write about. I'll think about it. Thanks for the idea...

          :josh: My WPF Blog[^] The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it. - Michelangelo (1475-1564)

          1 Reply Last reply
          0
          • P Patrick Etc

            Josh Smith wrote:

            It's generally better in WPF to handle user interactions via the routed Command system because it promotes a loose coupling between the visuals and application logic. Just my 2 cents.

            Hmm.. your ideas intrigue me, and I would like to subscribe to your newsletter - Err, sorry, channeled Homer Simpson for a second. Any plans on writing an article about routed Commands? :) I've looked at that a little bit but it seemed rather intimidating..

            J Offline
            J Offline
            Josh Smith
            wrote on last edited by
            #5

            I actually wrote a bit about routed commands on my blog a while back. Here[^] is the link, if you want to check it out.

            :josh: My WPF Blog[^] The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it. - Michelangelo (1475-1564)

            1 Reply Last reply
            0
            • B besmel

              just trying it, is it just me or the editor is far from being usable ? I mean, it's very nice, but when I need to bind events from any control the only thing it can do is bind one event : example, insert a button, then Ctrl+Dbl click adds the click event and this seems the only event that can be managed from the editor...or I'm missing where it can be done ? tried the property window etc etc, windows form editor seems more powerful... what's your experience ?

              C Offline
              C Offline
              Chris Maunder
              wrote on last edited by
              #6

              Am I the only who still can't stop reading WPF as WTF? I know - I need to grow up...

              cheers, Chris Maunder

              CodeProject.com : C++ MVP

              P 1 Reply Last reply
              0
              • C Chris Maunder

                Am I the only who still can't stop reading WPF as WTF? I know - I need to grow up...

                cheers, Chris Maunder

                CodeProject.com : C++ MVP

                P Offline
                P Offline
                Patrick Etc
                wrote on last edited by
                #7

                Chris Maunder wrote:

                I know - I need to grow up...

                Nah, if you did that this place would be as boring and stuffy as your grandparents' front porch :) I sometimes read it as 'WTF' also and when I first started seeing it, I did think it was a typo.. :doh: :laugh:

                1 Reply Last reply
                0
                • P Patrick Etc

                  Josh Smith wrote:

                  It's generally better in WPF to handle user interactions via the routed Command system because it promotes a loose coupling between the visuals and application logic. Just my 2 cents.

                  Hmm.. your ideas intrigue me, and I would like to subscribe to your newsletter - Err, sorry, channeled Homer Simpson for a second. Any plans on writing an article about routed Commands? :) I've looked at that a little bit but it seemed rather intimidating..

                  J Offline
                  J Offline
                  Josh Smith
                  wrote on last edited by
                  #8

                  I just re-read Chapter 7, titled "Actions", in "Essential Windows Presentation Foundation" by Chris Anderson. That is probably the best explanation of routed commands out there. I was going to write an article or blog post about the topic, but after revisiting that chapter I don't see a reason to do so. If you want to understand commands in WPF, just read that chapter.

                  :josh: My WPF Blog[^] Without a strive for perfection I would be terribly bored.

                  P 1 Reply Last reply
                  0
                  • J Josh Smith

                    I just re-read Chapter 7, titled "Actions", in "Essential Windows Presentation Foundation" by Chris Anderson. That is probably the best explanation of routed commands out there. I was going to write an article or blog post about the topic, but after revisiting that chapter I don't see a reason to do so. If you want to understand commands in WPF, just read that chapter.

                    :josh: My WPF Blog[^] Without a strive for perfection I would be terribly bored.

                    P Offline
                    P Offline
                    Patrick Etc
                    wrote on last edited by
                    #9

                    Josh Smith wrote:

                    If you want to understand commands in WPF, just read that chapter.

                    Hehe... ok Josh. I generally dislike purchasing programming books because a) writers simply don't know how to present technical material and b) I don't like having obsolete texts on my bookshelf, but I suppose I can make an exception.. ;)

                    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