Esempio n. 1
0
        private static void isExpandedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Transition3D element    = (Transition3D)d;
            bool         isExpanded = (bool)e.NewValue;

            if (isExpanded)
            {
                element.runExpandAnimation();
            }
            else
            {
                element.runCollapseAnimation();
            }
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.viewport3D = ((System.Windows.Controls.Viewport3D)(target));
                return;

            case 2:
                this._treeMap3D = ((PixelLab.Wpf.TreeMap3D)(target));
                return;

            case 3:
                this._transition3D = ((PixelLab.Wpf.Transition3D)(target));
                return;

            case 4:
                this._dataDisplay = ((System.Windows.Controls.StackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }