Example #1
0
        private void setContentMargin(storybordState _state)
        {
            int packageSetTop = 0;
            if (_state == storybordState.stateIn)
            {
                WhiteNAmeText.Margin = new Thickness(WhiteNAmeText.Margin.Left, 81, 0, 0);
                img_RectLogo.Margin = new Thickness(img_RectLogo.Margin.Left, 103, 0, 0);
                priceText.Margin = new Thickness(126, priceText.Margin.Top, 0, 0);
                image_CPU.Margin = new Thickness(123.5, image_CPU.Margin.Top, 0, 0);
                text_CPUHeadText.Margin = new Thickness(252, text_CPUHeadText.Margin.Top, 0, 0);
                CPUText.Margin = new Thickness(252, CPUText.Margin.Top, 0, 0);
                phoneModel.Margin = new Thickness(phoneModel.Margin.Left + 4, 174.5, 0, 0);
                CameraiTime.Margin = new Thickness(CameraiTime.Margin.Left, 513, 0, 0);
                packageSetTop = 380;
            }
            else
            {
                WhiteNAmeText.Margin = new Thickness(124.331, 121.169, 0, 0);
                img_RectLogo.Margin = new Thickness(114.5, 99.5, 0, 0);
                priceText.Margin = new Thickness(123.583, 362.5, 0, 0);
                image_CPU.Margin = new Thickness(120.5, 700, 0, 0);
                text_CPUHeadText.Margin = new Thickness(249, 695, 0, 0);
                CPUText.Margin = new Thickness(249, 730, 0, 0);
                phoneModel.Margin = new Thickness(833.497, 185.8, 0, 0);
                CameraiTime.Margin = new Thickness(1337.999, 531.01, 0, 0);
                packageSetTop = 250;
            }

            int count = 0;
            foreach (UIElement Child in Detail_Scene.Children)
            {
                if (Child is PackageItem)
                {
                    PackageItem PI = (PackageItem)Child;
                    PI.Margin = new Thickness(430 + (535 * count), packageSetTop, 0, 0);
                    count++;
                }
            }
        }
Example #2
0
        private void setAnimationParameter(storybordState _state)
        {
            packageStartTime = 0.5;
            packageAdditionStartTime = 0.10;

            if (_state == storybordState.stateIn)
            {

            }
            else
            {

            }
        }