Пример #1
0
        /// <summary>
        /// Called when [selected pivot item changed].
        /// </summary>
        /// <param name="d">The d.</param>
        /// <param name="e">The <see cref="System.Windows.DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        public static void OnSelectedPivotItemChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            //  Get the pivot control and pivot item.
            PivotControl me   = d as PivotControl;
            PivotItem    item = e.NewValue as PivotItem;

            //  Continue only if we have non-null objects.
            if (me == null || item == null)
            {
                return;
            }

            me.PivotControl_SizeChanged(me, null);
            me.UpdatePositioning(e.OldValue == null ? true : false);
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.casinoViewModel = ((SolitaireGames.Casino.CasinoView)(target));
                return;

            case 2:
                this.mainPivot = ((Apex.Controls.PivotControl)(target));
                return;

            case 3:
                this.klondikeSolitaireView = ((SolitaireGames.KlondikeSolitaire.KlondikeSolitaireView)(target));
                return;

            case 4:
                this.spiderSolitaireView = ((SolitaireGames.SpiderSolitaire.SpiderSolitaireView)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #3
0
 private static void OnShowPivotHeadingsChanged(DependencyObject o, DependencyPropertyChangedEventArgs args)
 {
     PivotControl me = o as PivotControl;
 }