// Token: 0x06004E49 RID: 20041 RVA: 0x0016061C File Offset: 0x0015E81C
        private static void OnHeaderChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            HeaderedItemsControl headeredItemsControl = (HeaderedItemsControl)d;

            headeredItemsControl.SetValue(HeaderedItemsControl.HasHeaderPropertyKey, (e.NewValue != null) ? BooleanBoxes.TrueBox : BooleanBoxes.FalseBox);
            headeredItemsControl.OnHeaderChanged(e.OldValue, e.NewValue);
        }
예제 #2
0
        /// <summary>
        /// HeaderProperty property changed handler.
        /// </summary>
        /// <param name="d">
        /// HeaderedItemsControl that changed its Header.
        /// </param>
        /// <param name="e">Event arguments.</param>
        private static void OnHeaderPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            HeaderedItemsControl source = d as HeaderedItemsControl;

            source.OnHeaderChanged(e.OldValue, e.NewValue);
        }