예제 #1
0
        /// <summary>
        /// Gets all skin classes
        /// </summary>
        public static List <Type> GetAllStyleableClasses()
        {
            List <Type> allTypes = TypeReflector.GetAllLoadedTypes();
            List <Type> output   = new List <Type>();

            foreach (Type type in allTypes)
            {
                if (type.IsClass)
                {
                    if (/*!GuiComponentsOnly || */ StyleClientType.IsAssignableFrom(type))
                    {
                        if (CoreReflector.HasClassAttributes <StyleAttribute>(type))
                        {
                            output.Add(type);
                        }
                    }
                }
            }

            return(output);
        }