I have a view model and it contains other view models. I need to copy or clone the view model how can <g class="gr_ gr_184 gr-alert gr_tiny gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling multiReplace" data-gr-id="184" id="184">i</g> achieve it in WPF.
The scenario is
1) I have a ribbon menu, it contains some text fields and dropdowns. I fill the values in the text box and select values from the drop-down which will perform a search operation based on the values selected and the results are displayed in a new tab below the ribbon menu.
If i change the values and perform a new search a new tab should open and new results should be populated with the new values.
When i switch to the old tab old values should populate in the ribbon menu and when i navigate to new tab new results should be populated with the new values.
How can i achieve this in WPF? and how can I maintain the values across tabs?
The ribbon menu contains all the view models include the search results as well. If you didn't get the question I can share my code.