private void RefreshRightClickMenuItems()
        {
            AnimationRightClickItems.Clear();

            if (SelectedAnimation != null)
            {
                var menuItem = new MenuItem();
                menuItem.Header = "Rename Animation";
                menuItem.Click += HandleRenameAnimation;

                AnimationRightClickItems.Add(menuItem);
            }
        }
Example #2
0
        private void RefreshRightClickMenuItems()
        {
            AnimationRightClickItems.Clear();

            if (SelectedAnimation != null)
            {
                var menuItem = new MenuItem();
                menuItem.Header = "Rename Animation";
                menuItem.Click += HandleRenameAnimation;
                AnimationRightClickItems.Add(menuItem);

                var squashStretch = new MenuItem();
                squashStretch.Header = "Squash/Stretch Frame Times";
                squashStretch.Click += HandleSquashStretchTimes;
                AnimationRightClickItems.Add(squashStretch);
            }
        }