I am developing a desktop application using Modern UI for WPF. I try to refresh my tab page when I go to a new tab page, but I couldn't.
I want to refresh my MUI WPF tab page when I go to another page using my tab controller.
Can anyone help me?
I am developing a desktop application using Modern UI for WPF. I try to refresh my tab page when I go to a new tab page, but I couldn't.
I want to refresh my MUI WPF tab page when I go to another page using my tab controller.
Can anyone help me?
While the selected answer is ok, it might not be the best way to go about it.
MUI includes a content navigation framework that handles content loading, unloading and history navigation based on link uris. If you want your content to be aware of navigation events such as loaded and unloaded events, you'll need to implement an interface.
Make your content navigation aware by implementing the IContent interface available in the FirstFloor.ModernUI.Windows namespace.
A simple Example is :
I'm not quite sure what you mean exactly, but by calling InvalidateVisual() on a control, you can force a visual refresh of it if that's what you're after, as it sounds like you've got a WPF control that isn't being updated when the data is changing.
Based on the MSDN documentation, this:
For example:
I hope that this is of use.
You can use SelectionChanged event to handle this. You can refresh MUI WPF tab page by using SelectionChanged.
Then you can access to each TabItem at the event: