public PivotItemFragment(PivotItem item) { if (item == null) { throw new ArgumentNullException(nameof(item)); } _item = item; }
void OnIsProgrammerPropertyChanged(bool oldValue, bool newValue) { if (newValue) { EnsureProgrammer(); m_pivotItem = (Windows.UI.Xaml.Controls.PivotItem)(DockPivot.Items[0]); DockPivot.Items.RemoveAt(0); } else { if (m_pivotItem != null && DockPivot.Items.Count == 1) { DockPivot.Items.Insert(0, m_pivotItem); } } DockPivot.SelectedIndex = 0; UpdateViewState(); UpdatePanelViewState(); }