Transition zur Veränderung der Transparenz eines Steuerelements.
Inheritance: Transition
Exemplo n.º 1
0
        protected override void LoadContent()
        {
            base.LoadContent();

            Skin.Current.ButtonBrush =
                NineTileBrush.FromSingleTexture(
                    Game.Screen.Content.LoadTexture2DFromFile("./Assets/OctoAwesome.Client/UI/buttonLong_brown.png",
                        GraphicsDevice), 15, 15);

            Skin.Current.ButtonHoverBrush =
                NineTileBrush.FromSingleTexture(
                    Game.Screen.Content.LoadTexture2DFromFile("./Assets/OctoAwesome.Client/UI/buttonLong_beige.png",
                        GraphicsDevice), 15, 15);

            Skin.Current.ButtonPressedBrush =
                NineTileBrush.FromSingleTexture(
                    Game.Screen.Content.LoadTexture2DFromFile("./Assets/OctoAwesome.Client/UI/buttonLong_beige_pressed.png",
                        GraphicsDevice), 15, 15);

            Frame.Background = new BorderBrush(Color.CornflowerBlue);

            NavigateFromTransition = new AlphaTransition(Frame, Transition.Linear, TimeSpan.FromMilliseconds(200), 0f);
            NavigateToTransition = new AlphaTransition(Frame, Transition.Linear, TimeSpan.FromMilliseconds(200), 1f);

            NavigateToScreen(new MainScreen(this));
        }
Exemplo n.º 2
0
        protected override void LoadContent()
        {
            base.LoadContent();

            Frame.Background = new BorderBrush(Color.CornflowerBlue);

            NavigateFromTransition = new AlphaTransition(Frame, Transition.Linear, TimeSpan.FromMilliseconds(200), 0f);
            NavigateToTransition = new AlphaTransition(Frame, Transition.Linear, TimeSpan.FromMilliseconds(200), 1f);

            NavigateToScreen(new MainScreen(this));
        }