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. XAML Binding Syntax

XAML Binding Syntax

Scheduled Pinned Locked Moved The Lounge
wpfwcfcomquestion
6 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.
  • C Offline
    C Offline
    chaiguy1337
    wrote on last edited by
    #1

    Why is XAML binding syntax like this: {Binding Path=blah} instead of this: Binding{Path=blah} ?? We don't write methods like this: myString(Substring 12) !! Two ways of visually/textually representing the same concept is just confusing! :mad:

    “Time and space can be a bitch.” –Gushie, Quantum Leap {o,o}.oO( Looking for a great RSS reader? Try FeedBeast! ) |)””’)            Built with home-grown CodeProject components! -”-”-

    J S 2 Replies Last reply
    0
    • C chaiguy1337

      Why is XAML binding syntax like this: {Binding Path=blah} instead of this: Binding{Path=blah} ?? We don't write methods like this: myString(Substring 12) !! Two ways of visually/textually representing the same concept is just confusing! :mad:

      “Time and space can be a bitch.” –Gushie, Quantum Leap {o,o}.oO( Looking for a great RSS reader? Try FeedBeast! ) |)””’)            Built with home-grown CodeProject components! -”-”-

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      Similar to other markup syntax, ain't it? For an HTML anchor element, you do <a href=blah />

      C 1 Reply Last reply
      0
      • J Judah Gabriel Himango

        Similar to other markup syntax, ain't it? For an HTML anchor element, you do <a href=blah />

        C Offline
        C Offline
        chaiguy1337
        wrote on last edited by
        #3

        Good point. Still don't like it tho. :P

        “Time and space can be a bitch.” –Gushie, Quantum Leap {o,o}.oO( Looking for a great RSS reader? Try FeedBeast! ) |)””’)            Built with home-grown CodeProject components! -”-”-

        1 Reply Last reply
        0
        • C chaiguy1337

          Why is XAML binding syntax like this: {Binding Path=blah} instead of this: Binding{Path=blah} ?? We don't write methods like this: myString(Substring 12) !! Two ways of visually/textually representing the same concept is just confusing! :mad:

          “Time and space can be a bitch.” –Gushie, Quantum Leap {o,o}.oO( Looking for a great RSS reader? Try FeedBeast! ) |)””’)            Built with home-grown CodeProject components! -”-”-

          S Offline
          S Offline
          Shog9 0
          wrote on last edited by
          #4

          chaiguy1337 wrote:

          We don't write methods like this: myString(Substring 12) !!

          Both Lisp and ObjectiveC have syntax similar to that.

          ----

          You're right. These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets.

          L C 2 Replies Last reply
          0
          • S Shog9 0

            chaiguy1337 wrote:

            We don't write methods like this: myString(Substring 12) !!

            Both Lisp and ObjectiveC have syntax similar to that.

            ----

            You're right. These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets.

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #5

            And MS thought they were being original ;P

            xacc.ide - now with TabsToSpaces support
            IronScheme - 1.0 alpha 4a out now (29 May 2008)

            1 Reply Last reply
            0
            • S Shog9 0

              chaiguy1337 wrote:

              We don't write methods like this: myString(Substring 12) !!

              Both Lisp and ObjectiveC have syntax similar to that.

              ----

              You're right. These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets.

              C Offline
              C Offline
              chaiguy1337
              wrote on last edited by
              #6

              Shog9 wrote:

              Both Lisp and ObjectiveC have syntax similar to that.

              Bizarre. I prefer the target( params ) syntax. It makes more sense to me, rather than grouping the target and params within the same encompassing encapsulation. Can you imagine if indexer syntax was like that too? collection[Items i] or [myDictionary key] Ick!

              “Time and space can be a bitch.” –Gushie, Quantum Leap {o,o}.oO( Looking for a great RSS reader? Try FeedBeast! ) |)””’)            Built with home-grown CodeProject components! -”-”-

              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