/// <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, }; }
public T GetStyleSetter <T>(StyleSetter setter, IVisualElement element) { throw new NotImplementedException(); }