Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
5.00/5 (3 votes)
See more:
I have multiple user controls of the same type in a grid, and want to Bind to an array that is a property in the ViewModel based on the Grid.Row and Grid.Column. Ideally I would like to be able to to this binding in the UserControl, but alternately do it in the declaration in the grid.

I also would like to set the visibility of the UserControl to collapsed, and to do this I want to be able to set Visibility to Collapsed if either Row or Column is greater than a certain value. I figure I can use a value converter to do this, but again, getting the row and column is the difficulty.

Thanks
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900