Help with TransitioningContentControl and Grid? RRS feed

  • Question

  • I've been trying to figure out how to use the TransitioningContentControl with two Grids (Grid1 and Grid2) I've setup ... I would like to  swap out the TransitioningContentControl.content to be one or the other of my Grids (.Content = Grid1 or .Content = Grid2) which is triggered by a ComboBox selectedIndex change.

    Setting the Content = "some string value" works fine.  But when I try to set the content to one of my Grids (Grid1 or Grid2) it returns an error in code behind -- basically saying I can't assign a Grid as a value for the Content.

    Reading more and I discovered the "ContentTemplate" ... so I setup a ContentTemplate ... but I'm stuck on how do I swap in/out my Grids (Grid1 and Grid2) in the ContentTemplate? 

    Note: Grid1 and Grid2 are layout controls NOT a DataGrid.


    Thanks, Rob.

    Thursday, October 13, 2011 5:26 PM


All replies