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