private bool ShouldCheckCategory(AssetLibrary library, AssetCategory category) { if (AssetView.IsUserThemeCategory(category.Path)) { return(AssetLibrary.GetUserThemeName(library.ActiveUserThemeProvider) == category.Path.LastStep); } return(false); }
private void OpenCategoryContextMenu(AssetCategory category) { ContextMenu contextMenu = (ContextMenu)null; if (AssetView.IsUserThemeCategory(category.Path)) { this.SelectCategory(category); contextMenu = UserThemeCommandHelper.GetThemeContextMenu(this.Library, category); } if (contextMenu == null) { return; } contextMenu.Placement = PlacementMode.MousePoint; contextMenu.IsOpen = true; }