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;
        }
Esempio n. 3
0
        public DescendentSelector(Selector parent)
        {
            if (parent == null)
            {
                throw new InvalidOperationException("Descendent selector must be preceeded by a selector.");
            }

            _parent = parent;
        }
Esempio n. 4
0
        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;
 }
Esempio n. 8
0
 public NotSelector(Selector?previous, Selector argument)
 {
     _previous = previous;
     _argument = argument ?? throw new InvalidOperationException("Not selector must have a selector argument.");
 }
Esempio n. 9
0
 protected TypeNameAndClassSelector(Selector previous)
 {
     _previous = previous;
 }