Exemplo n.º 1
0
        private void AttachEF(object sender, MouseEventArgs e)
        {
            var Tag = new FKMethods.TagHelper
            {
                Transition =
                    new Controller.FKMenuHelper.MenuStruct.MouseEnter.Colors
                {
                    Active      = Extensions.HexToColor("#274b6c"),
                    Hover       = Extensions.HexToColor("#274b6d"),
                    Reset       = Extensions.HexToColor("#f4f4f2"),
                    ResetBorder = Extensions.HexToColor("#fff"),
                    FadeIn      = 300,
                    FadeOut     = 200
                }
            };

            AttachText.AnimateForeground(new FKMethods.TagHelper
            {
                Transition = new Controller.FKMenuHelper.MenuStruct.MouseEnter.Colors
                {
                    Active  = Extensions.HexToColor("#6f6f6f"),
                    Hover   = Extensions.HexToColor("#fff"),
                    Reset   = Extensions.HexToColor("#6f6f6f"),
                    FadeIn  = 300,
                    FadeOut = 200
                }
            }, true, true);

            sender.CastVisual <Border>().AnimateBackground(Tag, true, true);
        }
Exemplo n.º 2
0
            public void Update()
            {
                double val = Helpers.ExperienceHelper.Call(Type);

                if (val != _value)
                {
                    _value = val;

                    Extensions.Execute.UIThread(() =>
                    {
                        FKMethods.TagHelper Tag = Control.Tag.CastHelper <FKMethods.TagHelper>();
                        Tag.Handler.CastHelper <Border>().AnimateBackground(Tag, true, true);

                        this.Control.FindChild <TextBlock>("").Text = "+" + _value;
                    });
                }
            }