Wednesday, May 28, 2014

Name of this element

The error "WrapGrid can only be used to display items within an ItemsControl" means exactly what it says: you can't use the WrapGrid outside of an ItemsControl such as a ListView or GridView.


Instead you'll need to use a different container. For hard-coded elements I'd use a Grid and place the subitems in specific row/column spots. If you want TextBoxes one on top of another then consider a StackPanel.


The missing / in Darin's closing </StackPanel> looks like a typo. It's required but not related to your WrapPanel problem.


No comments:

Post a Comment