Ejemplo n.º 1
0
        static Image FadeIcon(Image icon, ITreeBuilderContext context)
        {
            Image fadedIcon = context.GetComposedIcon(icon, "fade");

            if (fadedIcon == null)
            {
                fadedIcon = icon.WithAlpha(0.5);
                context.CacheComposedIcon(fadedIcon, "fade", icon);
            }
            return(fadedIcon);
        }