private void HideTabHeader()
{
Dispatcher.BeginInvoke(new Action(() =>
{
var root = VisualTreeHelper.GetChild(this.tabControlName, 0) as
FrameworkElement;
var headerElement = root.FindName("HeaderDockedElement") as UIElement;
headerElement.Visibility = System.Windows.Visibility.Collapsed;
}), System.Windows.Threading.DispatcherPriority.ApplicationIdle);
}
No comments:
Post a Comment