You can find two different approaches to prevent this in this StackOverflow question:
I recommend:
More Related Contents:
- How to preserve control state within tab items in a TabControl
- WPF TabControl – Preventing Unload on Tab Change?
- How to fix this behavior in a WPF TabControl?
- Is there Selected Tab Changed Event in the standard WPF Tab Control
- How to create trapezoid tabs in WPF tab control
- TabControl with Add New Tab Button (+)
- What is the proper way to handle multiple datagrids in a tab control so that cells leave edit mode when the tabs are changed?
- WPF – TabItem Background color changes when tabitem selected or hover over
- How to detect broken WPF Data binding?
- Stop TabControl from recreating its children
- The name does not exist in the namespace error in XAML
- How to get a group of toggle buttons to act like radio buttons in WPF?
- Get Absolute Position of element within the window in wpf
- How to create custom window chrome in wpf?
- How to bind inverse boolean properties in WPF?
- Inheriting from a UserControl in WPF
- Passing parameters between viewmodels
- ItemContainerGenerator.ContainerFromItem() returns null?
- Convert memory stream to BitmapImage?
- WPF Binding to local variable
- Set the caret/cursor position to the end of the string value WPF textbox
- How to bind xml to the WPF DataGrid correctly?
- Difference between Label and TextBlock
- How can I sort a ListBox using only XAML and no code-behind?
- Combine expander and grid (resizable expander)
- Why don’t these animations work when I’m using a storyboard?
- WPF binding with StringFormat doesn’t work on ToolTips
- How can I get the position of a child element relative to a parent?
- Adding a Merged Dictionary to a Merged Dictionary
- Bind a property to DataTemplateSelector