How to bind to add/remove grid columns from ViewModel
Posted: 05 Sep 2014, 15:02
Hi,
I'm designing a UserControl that uses a Grid to layout its visual sub elements.
I'd like to have a Model that describes the number of visual elements to be displayed and a ViewModel that makes that happen.
I'm not sure how to proceed. I cannot see any way to bind to the Columndefinition collection, and I'm not really sure how I to do this otherwise.
I found an approach here:
http://rachel53461.wordpress.com/2011/0 ... roperties/
Is this possible in Noesis today? (seems overly complex for such a simple task?)
I'm designing a UserControl that uses a Grid to layout its visual sub elements.
I'd like to have a Model that describes the number of visual elements to be displayed and a ViewModel that makes that happen.
I'm not sure how to proceed. I cannot see any way to bind to the Columndefinition collection, and I'm not really sure how I to do this otherwise.
I found an approach here:
http://rachel53461.wordpress.com/2011/0 ... roperties/
Is this possible in Noesis today? (seems overly complex for such a simple task?)