protected override void OnComponentVisibilityChanged(ComponentVisibility visibility)
        {
            Pivot.NotifyStateChanged();

            if (Pivot.Items[Pivot.SelectedKey] == this)
            {
                Pivot.SelectedKey = Pivot.Items.First().Key;
            }

            base.OnComponentVisibilityChanged(visibility);
        }