Ejemplo n.º 1
0
 public VisualStateSelector(IStyleSelector selector,
                            VisualStateType stateType)
     : base((selector.GetHashCode() * 397) ^ (Int32)stateType)
 {
     BaseSelector = selector;
     StateType    = stateType;
 }
Ejemplo n.º 2
0
 public ChildSelector(IStyleSelector parentSelector,
                      IStyleSelector selectorForChild)
     : base(parentSelector.GetHashCode() & selectorForChild.GetHashCode())
 {
     Parent = parentSelector;
     Child  = selectorForChild;
 }
 public DependencyPropertyValueRule(IStyleSelector selector,
                                    ValueDeclaration <TValue> declaration)
 {
     Selector    = selector;
     _hashCode   = selector.GetHashCode() & declaration.GetHashCode();
     Declaration = declaration;
 }
Ejemplo n.º 4
0
 public AdjacentSiblingSelector(IStyleSelector firstElementSelector,
                                IStyleSelector secondElementSelector)
     : base(firstElementSelector.GetHashCode() & secondElementSelector.GetHashCode())
 {
     FirstElementSelector  = firstElementSelector;
     SecondElementSelector = secondElementSelector;
 }
 public StyleValueRule(IStyleSelector selector,
                       IEnumerable <IStyleDeclaration> declarations)
 {
     Selector     = selector;
     _hashCode    = selector.GetHashCode();
     Declarations = declarations.ToArray();
 }