Two ModernTab help

Jun 11, 2013 at 4:34 PM
how can i use two ModernTab to show Data in 2 Modus , Display Modus and EditModus?

For example:
ModernTab1.( here the first tab show me the Person Data) and his Content has the seconde ModernTab with Tabitem( Display and Edit);

i want to switch into Display and Edit without changing person data!

any idea??
Ghis
Coordinator
Jun 11, 2013 at 5:57 PM
Assuming you are talking about nested tabs, you can set your viewmodel to the DataContext of ModernTab1. When ModernTab2 is displayed as a tab in ModernTab1 it automatically derives the DataContext from its parent. In your view model you can reference the current person data.