public override void FireEvent(string eventName, RoutingStrategyEnum routingStrategy) { base.FireEvent(eventName, routingStrategy); if (eventName == LOSTFOCUS_EVENT || eventName == GOTFOCUS_EVENT) { UpdateCurrentItem(); } }
public override void FireEvent(string eventName, RoutingStrategyEnum routingStrategy) { base.FireEvent(eventName, routingStrategy); if (eventName == LOADED_EVENT) { UpdateScrollBars(); } }
public override void FireEvent(string eventName, RoutingStrategyEnum routingStrategy) { base.FireEvent(eventName, routingStrategy); if (eventName == LOADED_EVENT) { RegisterKeyBinding(); } }
public override void FireEvent(string eventName, RoutingStrategyEnum routingStrategy) { base.FireEvent(eventName, routingStrategy); if (eventName == VISIBILITY_CHANGED_EVENT) { if (!CheckVisibility()) { // Element lost visibility - notify image sources ImageSource source = _sourceState.ImageSource; if (source != null) { source.VisibilityLost(); } source = _fallbackSourceState.ImageSource; if (source != null) { source.VisibilityLost(); } } } }
public virtual void FireEvent(string eventName, RoutingStrategyEnum routingStrategy) { if (routingStrategy == RoutingStrategyEnum.Tunnel) { // Tunnel strategy: All parents first, then this element UIElement parent = VisualParent as UIElement; if (parent != null) { parent.FireEvent(eventName, routingStrategy); } } UIEventDelegate dlgt = EventOccured; if (dlgt != null) { dlgt(eventName); } switch (routingStrategy) { case RoutingStrategyEnum.Bubble: // Bubble strategy: First this element, then all parents UIElement parent = VisualParent as UIElement; if (parent != null) { parent.FireEvent(eventName, routingStrategy); } break; case RoutingStrategyEnum.VisualTree: // VisualTree strategy: First this element, then all children foreach (UIElement child in GetChildren()) { child.FireEvent(eventName, routingStrategy); } break; } }
public void FireEvent(string eventName, RoutingStrategyEnum routingStrategy) { if (routingStrategy == RoutingStrategyEnum.Tunnel) { // Tunnel strategy: All parents first, then this element UIElement parent = VisualParent as UIElement; if (parent != null) parent.FireEvent(eventName, routingStrategy); } DoFireEvent(eventName); switch (routingStrategy) { case RoutingStrategyEnum.Bubble: // Bubble strategy: First this element, then all parents UIElement parent = VisualParent as UIElement; if (parent != null) parent.FireEvent(eventName, routingStrategy); break; case RoutingStrategyEnum.VisualTree: // VisualTree strategy: First this element, then all children foreach (UIElement child in GetChildren()) child.FireEvent(eventName, routingStrategy); break; } }
protected void TriggerScreenEvent(string eventName, RoutingStrategyEnum routingStrategy) { _pendingScreenEvent = new PendingScreenEvent(eventName, routingStrategy); }
public PendingScreenEvent(string eventName, RoutingStrategyEnum routingStrategy) { _eventName = eventName; _routingStrategy = routingStrategy; }
public override void FireEvent(string eventName, RoutingStrategyEnum routingStrategy) { base.FireEvent(eventName, routingStrategy); if (eventName == LOADED_EVENT) UpdateScrollBars(); }
public override void FireEvent(string eventName, RoutingStrategyEnum routingStrategy) { base.FireEvent(eventName, routingStrategy); if (eventName == LOSTFOCUS_EVENT || eventName == GOTFOCUS_EVENT) UpdateCurrentItem(); }
public override void FireEvent(string eventName, RoutingStrategyEnum routingStrategy) { base.FireEvent(eventName, routingStrategy); if (eventName == LOADED_EVENT) RegisterKeyBinding(); }
public override void FireEvent(string eventName, RoutingStrategyEnum routingStrategy) { base.FireEvent(eventName, routingStrategy); if (eventName == VISIBILITY_CHANGED_EVENT) { if (!CheckVisibility()) { // Element lost visibility - notify image sources ImageSource source = _sourceState.ImageSource; if (source != null) source.VisibilityLost(); source = _fallbackSourceState.ImageSource; if (source != null) source.VisibilityLost(); } } }