예제 #1
0
 private bool ShouldCheckCategory(AssetLibrary library, AssetCategory category)
 {
     if (AssetView.IsUserThemeCategory(category.Path))
     {
         return(AssetLibrary.GetUserThemeName(library.ActiveUserThemeProvider) == category.Path.LastStep);
     }
     return(false);
 }
예제 #2
0
        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;
        }