示例#1
0
文件: TabItem.cs 项目: ya1gaurav/moon
        /// <summary>
        /// Header property changed handler
        /// </summary>
        /// <param name="d">TabItem that changed its Header.</param>
        /// <param name="e">DependencyPropertyChangedEventArgs.</param>
        private static void OnHeaderChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            TabItem ctrl = (TabItem)d;

            ctrl.HasHeader = (e.NewValue != null) ? true : false;
            ctrl.OnHeaderChanged(e.OldValue, e.NewValue);
        }