Search code examples
wpfxamlitemscontrolrapid-prototyping

What's the quickest/easiest way to get example data into ListView/GridView in WPF?


I'm doing some quick design work/rapid prototyping with WPF. I'm curious if anyone has a good strategy for getting example data into a ListView/GridView (or really any ItemsControl for that matter). The example data would either be made up on the fly, or pasted in from somewhere (e.g., an Excel file).


Solution

  • One option is the XMLDataProvider..

    This way you can type the data directly into the XAML.

    See this question for an example.