Example #1
0
        /// <summary>
        /// Creates a new <see cref="Style"/> object
        /// </summary>
        /// <param name="category">Category id</param>
        /// <param name="color">Color for the category</param>
        public Style(string category, string color)
        {
            TargetType = "Node";
            Condition = new StyleCondition
            {
                Expression = string.Format("HasCategory('{0}')", category),
            };

            Setter = new StyleSetter
            {
                Value = color,
            };
        }
Example #2
0
        /// <summary>
        /// Creates a new <see cref="Style"/> object
        /// </summary>
        /// <param name="category">Category id</param>
        /// <param name="color">Color for the category</param>
        public Style(string category, string color)
        {
            TargetType = "Node";
            Condition  = new StyleCondition
            {
                Expression = string.Format("HasCategory('{0}')", category),
            };

            Setter = new StyleSetter
            {
                Value = color,
            };
        }
Example #3
0
 public T GetStyleSetter <T>(StyleSetter setter, IVisualElement element)
 {
     throw new NotImplementedException();
 }