I tied this in the handler to make it work:
void TabControl_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (e.Source is TabControl)
{
//do work when tab is changed
}
}
More Related Contents:
- How to preserve control state within tab items in a TabControl
- WPF TabControl – Preventing Unload on Tab Change?
- WPF calling commands via events
- How to fix this behavior in a WPF TabControl?
- What are WPF Preview Events?
- What does it mean to “Capture the mouse” in WPF?
- How can I Have a WPF EventTrigger on a View trigger when the underlying Viewmodel dictates it should?
- How to create trapezoid tabs in WPF tab control
- How to capture a mouse click on an Item in a ListBox in WPF?
- How to stop Wpf Tabcontrol to unload Visual tree on Tab change
- How to create user define (new) event for user control in WPF ?one small example
- TabControl with Add New Tab Button (+)
- WPF Events in ResourceDictionary for a ControlTemplate
- WPF MouseLeftButtonUp Not Firing
- WPF datagrid selected row clicked event ?
- 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
- RoutedEventArgs.Source vs Sender
- WPF animation: binding to the “To” attribute of storyboard animation
- How do I create and show WPF windows on separate threads?
- why setting ScrollViewer.CanContentScroll to false disable virtualization
- DataTrigger where value is NOT null?
- Adding controls dynamically in WPF MVVM
- Template Binding with Attached Properties
- Anyone know a code editor I can embed in a WPF window or Windows forms? [closed]
- WPF: Bind DataGrid to List
- WPF ListBox with a ListBox – UI Virtualization and Scrolling
- What is the difference for TargetType=”{x:Type Button}” and TargetType=”Button”?
- Can you define multiple TargetTypes for one XAML style?
- Force validation on bound controls in WPF