Can you use data binding with the Content property of a WPF Frame?
Posted
by dthrasher
on Stack Overflow
See other posts from Stack Overflow
or by dthrasher
Published on 2010-04-23T17:53:39Z
Indexed on
2010/05/13
7:14 UTC
Read the original article
Hit count: 284
I can use data binding to set the initial Content of a WPF Frame, but subsequent changes to the the bound property (implemented using INotifyPropertyChange) do not seem to change the content.
Also, does anyone know if binding directly to the Content property in this way will cause the bound item to appear in the Frame or NavigationWindow's journal?
Some context: I realize that I should probably be using the NavigationService to interact with the Frame, but I'm attempting to follow the MVVM pattern. It seems like it would be much simpler to databind to the Content property...
© Stack Overflow or respective owner