public IConnectable GetListItemEventRealization(ProviderEventType eventType, ListItemProvider prov) { if (eventType == ProviderEventType.AutomationElementHasKeyboardFocusProperty) { return(new PartListItemAutomationHasKeyboardFocusPropertyEvent( prov, this)); } return(null); }
public override IConnectable GetListItemEventRealization(ProviderEventType eventType, ListItemProvider prov) { if (eventType == ProviderEventType.AutomationElementIsOffscreenProperty) { return(new ListItemAutomationIsOffscreenPropertyEvent(prov)); } else { return(base.GetListItemEventRealization(eventType, prov)); } //FIXME: Return AutomationIsKeyboardFocusablePropertyEvent }
public void SetEvent(ProviderEventType type, IConnectable strategy) { IConnectable value; if (events.TryGetValue(type, out value) == true) { value.Disconnect(); events.Remove(type); } if (strategy != null) { events [type] = strategy; strategy.Connect(); } }
public IConnectable GetListItemEventRealization(ProviderEventType eventType, ListItemProvider provider) { if (eventType == ProviderEventType.AutomationElementHasKeyboardFocusProperty) { return(new DataItemAutomationHasKeyboardFocusPropertyEvent(provider)); } else if (eventType == ProviderEventType.AutomationFocusChangedEvent) { return(new DataItemAutomationFocusChangedEvent(provider)); } else if (eventType == ProviderEventType.AutomationElementIsOffscreenProperty) { return(new DataItemAutomationIsOffscreenPropertyEvent(provider)); } else { return(null); } }
public virtual IConnectable GetListItemEventRealization(ProviderEventType eventType, ListItemProvider prov) { return(null); }
public IConnectable GetListItemEventRealization (ProviderEventType eventType, ListItemProvider prov) { if (eventType == ProviderEventType.AutomationElementHasKeyboardFocusProperty) return new ListItemAutomationHasKeyboardFocusPropertyEvent (prov); else return null; }
public void SetEvent (ProviderEventType type, IConnectable strategy) { IConnectable value; if (events.TryGetValue (type, out value) == true) { value.Disconnect (); events.Remove (type); } if (strategy != null) { events [type] = strategy; strategy.Connect (); } }
public virtual IConnectable GetListItemEventRealization (ProviderEventType eventType, ListItemProvider prov) { return null; }
public IConnectable GetListItemEventRealization (ProviderEventType eventType, ListItemProvider provider) { if (eventType == ProviderEventType.AutomationElementHasKeyboardFocusProperty) return new DataItemAutomationHasKeyboardFocusPropertyEvent (provider); else if (eventType == ProviderEventType.AutomationFocusChangedEvent) return new DataItemAutomationFocusChangedEvent (provider); else if (eventType == ProviderEventType.AutomationElementIsOffscreenProperty) return new DataItemAutomationIsOffscreenPropertyEvent (provider); else return null; }
public override IConnectable GetListItemEventRealization (ProviderEventType eventType, ListItemProvider provider) { if (eventType == ProviderEventType.AutomationElementHasKeyboardFocusProperty) return new ListItemAutomationHasKeyboardFocusPropertyEvent (provider); else if (eventType == ProviderEventType.AutomationElementIsOffscreenProperty) return new ListItemAutomationIsOffscreenPropertyEvent (provider); // FIXME: ProviderEventType.AutomationElementBoundingRectangleProperty: // When setting/unsetting image else return base.GetListItemEventRealization (eventType, provider); }
public override IConnectable GetListItemEventRealization (ProviderEventType eventType, ListItemProvider provider) { if (eventType == ProviderEventType.AutomationElementHasKeyboardFocusProperty) return new ListItemAutomationHasKeyboardFocusPropertyEvent (provider); else if (eventType == ProviderEventType.AutomationElementHasKeyboardFocusProperty) return new ListItemAutomationIsOffscreenPropertyEvent (provider); else if (eventType == ProviderEventType.AutomationElementNameProperty) return new ListItemAutomationIsOffscreenPropertyEvent (provider); else return base.GetListItemEventRealization (eventType, provider); }
public override IConnectable GetListItemEventRealization (ProviderEventType eventType, ListItemProvider prov) { if (eventType == ProviderEventType.AutomationElementIsOffscreenProperty) return new ListItemAutomationIsOffscreenPropertyEvent (prov); else return base.GetListItemEventRealization (eventType, prov); //FIXME: Return AutomationIsKeyboardFocusablePropertyEvent }