Пример #1
0
        private void ChangeItemLeave(object sender, MouseEventArgs e)
        {
            IDesignHelper.ISideMenu Value = (IDesignHelper.ISideMenu)(sender as FrameworkElement).Tag;

            if (Value.isActive)
            {
                return;
            }

            (sender as FrameworkElement).Create().Register("From", "f2eeee").Register("To", "fafafa")
            .Animate(SolidColorBrush.ColorProperty, 200, Extensions.FadeDirection.FadeIn);
        }
Пример #2
0
        private void ChangeItem(object sender, MouseButtonEventArgs e)
        {
            IDesignHelper.ISideMenu Entry = (sender as FrameworkElement).Tag as IDesignHelper.ISideMenu;

            foreach (var x in DesignHelper.SideMenu)
            {
                x.isActive = x.EntryId == Entry.EntryId;
            }

            if (Entry.Target != null)
            {
                Entry.Target.Invoke();
            }

            (sender as FrameworkElement).Create().Register("From", "064c6c").Register("To", "5085a0")
            .Animate(SolidColorBrush.ColorProperty, 500, Extensions.FadeDirection.FadeIn);
        }
Пример #3
0
        public void PopulateFilters()
        {
            Filter = Config.Get <FKFilters>().Filters.FirstOrDefault();

            foreach (FilterItems f in Config.Get <FKFilters>().Filters)
            {
                IDesignHelper.ISideMenu Data = new IDesignHelper.ISideMenu
                {
                    Data     = f,
                    isActive = f.Equals(Config.Get <FKFilters>().Filters.FirstOrDefault()),
                    EntryId  = f.ID
                };

                Data.Target = (() => SetTarget(Data));
                IDesignHelper.SideMenu.Add(Data);
            }
        }