public static TypeNameAndClassSelector Is(Selector previous, Type targetType) { var result = new TypeNameAndClassSelector(previous); result._targetType = targetType; result.IsConcreteType = false; return result; }
public PropertyEqualsSelector(Selector previous, AvaloniaProperty property, object value) { Contract.Requires<ArgumentNullException>(property != null); _previous = previous; _property = property; _value = value; }
public DescendentSelector(Selector parent) { if (parent == null) { throw new InvalidOperationException("Descendent selector must be preceeded by a selector."); } _parent = parent; }
public TemplateSelector(Selector parent) { if (parent == null) { throw new InvalidOperationException("Template selector must be preceeded by a selector."); } _parent = parent; }
protected TypeNameAndClassSelector(Selector previous) { _previous = previous; }
public static TypeNameAndClassSelector ForClass(Selector previous, string className) { var result = new TypeNameAndClassSelector(previous); result.Classes.Add(className); return result; }
public static TypeNameAndClassSelector ForName(Selector previous, string name) { var result = new TypeNameAndClassSelector(previous); result.Name = name; return result; }
public NotSelector(Selector?previous, Selector argument) { _previous = previous; _argument = argument ?? throw new InvalidOperationException("Not selector must have a selector argument."); }