Пример #1
0
        /// <summary>
        /// Provides derived classes an opportunity to handle changes to the PivotHeader property.
        /// </summary>
        /// <param name="oldPivotHeader">Old Value</param>
        /// <param name="newPivotHeader">New Value</param>
        protected void OnPivotHeaderChanged(FrameworkElement oldPivotHeader, FrameworkElement newPivotHeader)
        {
            if (parent != null)
            {
                parent.UpdatePivotItemHeader(this);
            }
            IPivotHeader header = newPivotHeader as IPivotHeader;

            if (header != null)
            {
                header.SetActive(false);
            }
        }
Пример #2
0
 /// <summary>
 /// Provides derived classes an opportunity to handle changes to the PivotHeader property.
 /// </summary>
 /// <param name="oldPivotHeader">Old Value</param>
 /// <param name="newPivotHeader">New Value</param>
 protected void OnPivotHeaderChanged(FrameworkElement oldPivotHeader, FrameworkElement newPivotHeader)
 {
     parent?.UpdatePivotItemHeader(this);
     (newPivotHeader as IPivotHeader)?.SetActive(false);
 }