Пример #1
0
 public override void Filter(UIElement origin, int templateId, LightList <UIElement> resultSet)
 {
     for (int i = 0; i < resultSet.size; i++)
     {
         if ((resultSet.array[i].style.currentState & styleState) == 0)
         {
             resultSet.SwapRemoveAt(i--);
         }
     }
 }
Пример #2
0
 public override void Filter(UIElement origin, int templateId, LightList <UIElement> resultSet)
 {
     for (int i = 0; i < resultSet.size; i++)
     {
         string attr = resultSet.array[i].GetAttribute(attrName);
         if (attr != attrValue)
         {
             resultSet.SwapRemoveAt(i--);
         }
     }
 }