1

I ran into this issues endless number of times: in order to see some template, binding outcome or many more I need to run application. Is any solution to prevent running apps and be able to see result? It drives me nuts especially when it comes to see ListBoxItem's template since ListBox's binding displays no rows untill I run the whole app.

Maximus
  • 3,458
  • 3
  • 16
  • 27

1 Answers1

2

Use Design-Time data :)

Usually by declaring a different DataContext at design time like so:

<Grid d:DataContext="{Binding Source={StaticResource DesignViewModel}}">

Notice the "extra" d.

SO: Dummy Design Time Data

MSDN: Maximizing the Visual Designer’s Usage with Design-Time Data

Community
  • 1
  • 1
Chubosaurus Software
  • 8,133
  • 2
  • 20
  • 26