Stefan Schmid
Stefan Schmid

Reputation: 1042

Wrong View shown (Catel)

I'm trying to open a View with a ViewModel from my MainWindowViewModel. It works, but all I get is a blank window. It binds the correct title but every other control is missing.

Did anyone have the same problem and found a solution?

Upvotes: 0

Views: 55

Answers (1)

Geert van Horrik
Geert van Horrik

Reputation: 5724

You forgot the call to InitializeComponent in your code-behind. Just a tip: create a base class with the Catel behaviors, then use that as a base view. It will keep your actual window code-behind much cleaner.

Upvotes: 1

Related Questions