Exemplo n.º 1
0
        internal void NotifyItemSelectionChanged(PivotHeaderItem item, bool oldValue, bool newValue)
        {
            if (this.panel == null || this.panel.Children == null)
            {
                return;
            }
            if (!newValue)
            {
                return;
            }
            if (oldValue)
            {
                return;
            }
            var index = this.panel.Children.IndexOf(item);

            if (index < 0)
            {
                return;
            }

            if (this.SelectedIndex != index)
            {
                this.SelectedIndex = index;
            }
        }
Exemplo n.º 2
0
        internal void NotifyItemSelectionChanged(PivotHeaderItem item, bool oldValue, bool newValue)
        {
            if (this.panel == null || this.panel.Children == null) return;
            if (!newValue) return;
            if (oldValue) return;
            var index = this.panel.Children.IndexOf(item);
            if (index < 0) return;

            if (this.SelectedIndex != index)
            {
                this.SelectedIndex = index;
            }
        }