示例#1
0
        /// <inheritdoc/>
        protected override void OnGenericInteraction(UltravioletResource device, ref RoutedEventData data)
        {
            Ultraviolet.GetInput().ShowSoftwareKeyboard(KeyboardMode);
            data.Handled = true;

            base.OnGenericInteraction(device, ref data);
        }
示例#2
0
 /// <inheritdoc/>
 protected override void OnGenericInteraction(UltravioletResource device, ref RoutedEventData data)
 {
     if (!data.Handled)
     {
         Select();
         data.Handled = true;
     }
     base.OnGenericInteraction(device, ref data);
 }
示例#3
0
 /// <inheritdoc/>
 protected override void OnGenericInteraction(UltravioletResource device, ref RoutedEventData data)
 {
     if (!data.Handled)
     {
         Focus();
         data.Handled = true;
     }
     base.OnGenericInteraction(device, ref data);
 }
示例#4
0
 /// <inheritdoc/>
 protected override void OnGenericInteraction(UltravioletResource device, ref RoutedEventData data)
 {
     if (!data.Handled)
     {
         var comboBox = ItemsControl.ItemsControlFromItemContainer(this) as ComboBox;
         if (comboBox != null)
         {
             comboBox.HandleItemClicked(this);
         }
         data.Handled = true;
     }
     base.OnGenericInteraction(device, ref data);
 }
示例#5
0
 /// <inheritdoc/>
 protected override void OnGenericInteraction(UltravioletResource device, ref RoutedEventData data)
 {
     if (!data.Handled)
     {
         var comboBox = ItemsControl.ItemsControlFromItemContainer(this) as ComboBox;
         if (comboBox != null)
         {
             comboBox.HandleItemClicked(this);
         }
         data.Handled = true;
     }
     base.OnGenericInteraction(device, ref data);
 }
        /// <summary>
        /// Invoked by the <see cref="Generic.GenericInteractionEvent"/> attached routed event.
        /// </summary>
        /// <param name="device">The input device.</param>
        /// <param name="data">The routed event metadata for this event invocation.</param>
        protected virtual void OnGenericInteraction(UltravioletResource device, RoutedEventData data)
        {

        }
 /// <summary>
 /// Invokes the <see cref="OnGenericInteraction"/> method.
 /// </summary>
 private static void OnGenericInteractionProxy(DependencyObject element, UltravioletResource device, RoutedEventData data)
 {
     ((UIElement)element).OnGenericInteraction(device, data);
 }
示例#8
0
 /// <summary>
 /// Raises the PreviewGenericInteraction attached event for the specified element.
 /// </summary>
 internal static void RaisePreviewGenericInteraction(DependencyObject element, UltravioletResource device, ref RoutedEventData data)
 {
     var temp = EventManager.GetInvocationDelegate<UpfGenericInteractionEventHandler>(PreviewGenericInteractionEvent);
     if (temp != null)
     {
         temp(element, device, ref data);
     }
 }
示例#9
0
        /// <inheritdoc/>
        protected override void OnGenericInteraction(UltravioletResource device, RoutedEventData data)
        {
            UpdateTextInputRegion();
            Ultraviolet.GetInput().ShowSoftwareKeyboard(KeyboardMode.Text);

            data.Handled = true;

            base.OnGenericInteraction(device, data);
        }
示例#10
0
        /// <summary>
        /// Raises the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Generic.GenericInteraction"/>
        /// attached event for the specified element.
        /// </summary>
        internal static void RaiseGenericInteraction(DependencyObject element, UltravioletResource device, ref RoutedEventData data)
        {
            var evt = EventManager.GetInvocationDelegate <UpfGenericInteractionEventHandler>(GenericInteractionEvent);

            evt?.Invoke(element, device, ref data);
        }
示例#11
0
 /// <summary>
 /// Raises the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Generic.PreviewGenericInteraction"/> 
 /// attached event for the specified element.
 /// </summary>
 /// <value>The identifier for the <see cref="E:TwistedLogik.Ultraviolet.UI.Presentation.Input.Generic.PreviewGenericInteraction"/> 
 /// attached routed event.</value>
 internal static void RaisePreviewGenericInteraction(DependencyObject element, UltravioletResource device, RoutedEventData data)
 {
     var evt = EventManager.GetInvocationDelegate<UpfGenericInteractionEventHandler>(PreviewGenericInteractionEvent);
     evt?.Invoke(element, device, data);
 }
示例#12
0
        /// <inheritdoc/>
        protected override void OnGenericInteraction(UltravioletResource device, ref RoutedEventData data)
        {
            Ultraviolet.GetInput().ShowSoftwareKeyboard();
            data.Handled = true;

            base.OnGenericInteraction(device, ref data);
        }
示例#13
0
        /// <inheritdoc/>
        protected override void OnGenericInteraction(UltravioletResource device, RoutedEventData data)
        {
            if (!data.Handled)
            {
                Select();
                OnSelectedByUser();

                data.Handled = true;
            }
            base.OnGenericInteraction(device, data);
        }