This project is read-only.

WPF MVVM Shell Styling Tips

General Styling Tips

The upcoming issue of CODE Magazine features an article on creating styles and themes in CODE Framework. As soon as it is available, we will post a link here.

Showing the Selected View

There are SelectedNormalViewResult and SelectedTopLevelViewResult properties on the Shell object so one can easily bind a content control to whatever view is currently open, rather than always binding to all open views.

This can now be done like so in the Shell style:

<ContentControl Content="{Binding SelectedNormalViewResult.View}" />

That one shows the selected normal view. If you want to show the current top-level (popup) view, it can be done like so:

<ContentControl Content="{Binding SelectedTopLevelViewResult.View}" />


Last edited Oct 1, 2012 at 5:54 PM by MarkusEgger, version 7


No comments yet.