Exemplo n.º 1
0
 private void FireScrollEvent(ElementScrollInfo keyboardEvent, Type eventType)
 {
     if (_eventPool.ContainsKey(eventType))
     {
         var targetMap = _eventPool[eventType];
         foreach (var eItem in targetMap)
         {
             eItem.Value.Fire(keyboardEvent, _instancePool[eItem.Key]);
         }
     }
 }
Exemplo n.º 2
0
 public void OnScroll(ElementScrollInfo scrollEvent) => FireScrollEvent(scrollEvent, typeof(OnScrollEventAttribute));
Exemplo n.º 3
0
 public void OnScroll(ElementScrollInfo scrollEvent)
 {
     Console.WriteLine($"{nameof(EventHubTest)}:{nameof(OnScroll)}:{scrollEvent.ScrollTop}:{scrollEvent.ScrollHeight}");
 }