private void RefreshRightClickMenuItems() { AnimationRightClickItems.Clear(); if (SelectedAnimation != null) { var menuItem = new MenuItem(); menuItem.Header = "Rename Animation"; menuItem.Click += HandleRenameAnimation; AnimationRightClickItems.Add(menuItem); } }
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); } }