Exemplo n.º 1
0
 /// <summary>
 /// Adds the newly assigned PivotHeader of the PivotItem to the PivotPanel
 /// </summary>
 /// <param name="item">PivotItem</param>
 internal void UpdatePivotItemHeader(PivotItem item)
 {
     if ((_pivotItems.Contains(item)) && (item.PivotHeader != null) && (!_headerPanel.Contains(item.PivotHeader)))
     {
         _headerPanel.AddChild(item.PivotHeader);
         // Activate the First Pivot Item.
         ActivateFirstPivotItem();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds the newly assigned PivotHeader of the PivotItem to the PivotPanel
 /// </summary>
 /// <param name="item">PivotItem</param>
 internal void UpdatePivotItemHeader(PivotItem item)
 {
     if ((pivotItems.Contains(item)) && (item.PivotHeader != null) && (!headerPanel.Contains((UIElement)item.PivotHeader)))
     {
         headerPanel.AddChild(item.PivotHeader as UIElement);
         // Activate the First Pivot Item.
         ActivateFirstPivotItem();
     }
 }