Exemplo n.º 1
0
        void OnSelect(UiSelectedEvent e)
        {
            IUiEvent newEvent = new UiHoverEvent();

            foreach (var element in e.FocusedItems.Where(x => x == _exclusiveItem))
            {
                element.Receive(newEvent, this);
            }

            newEvent = new UiBlurEvent();
            foreach (var element in e.BlurredItems.Where(x => x == _exclusiveItem))
            {
                element.Receive(newEvent, this);
            }
        }
Exemplo n.º 2
0
        void OnSelect(UiSelectedEvent e)
        {
            IUiEvent newEvent = new UiBlurEvent();

            foreach (var element in e.BlurredItems)
            {
                if (!newEvent.Propagating)
                {
                    break;
                }
                element.Receive(newEvent, this);
            }

            newEvent = new UiHoverEvent();
            foreach (var element in e.FocusedItems)
            {
                if (!newEvent.Propagating)
                {
                    break;
                }
                element.Receive(newEvent, this);
            }
        }