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. any suggestions on how to deploy this MVVM model in Silverlight 4?

any suggestions on how to deploy this MVVM model in Silverlight 4?

Scheduled Pinned Locked Moved WPF
databasewpfarchitecturetutorialquestion
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.
  • M Offline
    M Offline
    Michael J Eber
    wrote on last edited by
    #1

    We have one screen that has a datagrid. The datagrid contains the entire object (Parcel) and displays 3 fields in the display. The display is intended to be as such: All parcels for a given site. Highlight (or use a checkbox) to display those parcels that pertain to this record. We can always do it the old way -- iterate thru the existing elements manually turning on the checkbox. But I prefer to keep this loosely bound. We've tried a few things but we both get brain freeze when coming up with the next approach. Any suggestions on deploying this display of a query that intersects a subquery?

    A R 2 Replies Last reply
    0
    • M Michael J Eber

      We have one screen that has a datagrid. The datagrid contains the entire object (Parcel) and displays 3 fields in the display. The display is intended to be as such: All parcels for a given site. Highlight (or use a checkbox) to display those parcels that pertain to this record. We can always do it the old way -- iterate thru the existing elements manually turning on the checkbox. But I prefer to keep this loosely bound. We've tried a few things but we both get brain freeze when coming up with the next approach. Any suggestions on deploying this display of a query that intersects a subquery?

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

      How about using a value converter[^]? A converter would be called as each row binds to the datagrid.

      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.

      M 1 Reply Last reply
      0
      • A Abhinav S

        How about using a value converter[^]? A converter would be called as each row binds to the datagrid.

        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.

        M Offline
        M Offline
        Michael J Eber
        wrote on last edited by
        #3

        Thanks for the suggestion but the passing of the subquery is where ValueConverter fails. MSDN suggested that I implement an Interaction.Trigger and invoke a DelegateCommand. I'm going to give that route a try. Michael

        P 2 Replies Last reply
        0
        • M Michael J Eber

          Thanks for the suggestion but the passing of the subquery is where ValueConverter fails. MSDN suggested that I implement an Interaction.Trigger and invoke a DelegateCommand. I'm going to give that route a try. Michael

          P Offline
          P Offline
          Paul Daniel Ruston
          wrote on last edited by
          #4

          Not sure why you need a sub-query. Can you not bind the checkbox to the site of the parcel, use a value converter passing in the current site as a converter parameter and return true if they are equal?

          1 Reply Last reply
          0
          • M Michael J Eber

            Thanks for the suggestion but the passing of the subquery is where ValueConverter fails. MSDN suggested that I implement an Interaction.Trigger and invoke a DelegateCommand. I'm going to give that route a try. Michael

            P Offline
            P Offline
            Paul Daniel Ruston
            wrote on last edited by
            #5

            Not sure why you need a sub-query. Can you not bind the checkbox to the record id of the parcel, use a value converter passing in the current record id as a converter parameter and return true if they are equal?

            1 Reply Last reply
            0
            • M Michael J Eber

              We have one screen that has a datagrid. The datagrid contains the entire object (Parcel) and displays 3 fields in the display. The display is intended to be as such: All parcels for a given site. Highlight (or use a checkbox) to display those parcels that pertain to this record. We can always do it the old way -- iterate thru the existing elements manually turning on the checkbox. But I prefer to keep this loosely bound. We've tried a few things but we both get brain freeze when coming up with the next approach. Any suggestions on deploying this display of a query that intersects a subquery?

              R Offline
              R Offline
              RichardGrimmer
              wrote on last edited by
              #6

              A quick and dirty way would be to expose an IsSelected property on your parcel and bind to that.

              C# has already designed away most of the tedium of C++.

              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