/// <inheritdoc/> protected override void OnGenericInteraction(UltravioletResource device, ref RoutedEventData data) { Ultraviolet.GetInput().ShowSoftwareKeyboard(KeyboardMode); data.Handled = true; base.OnGenericInteraction(device, ref data); }
/// <inheritdoc/> protected override void OnGenericInteraction(UltravioletResource device, ref RoutedEventData data) { if (!data.Handled) { Select(); data.Handled = true; } base.OnGenericInteraction(device, ref data); }
/// <inheritdoc/> protected override void OnGenericInteraction(UltravioletResource device, ref RoutedEventData data) { if (!data.Handled) { Focus(); data.Handled = true; } base.OnGenericInteraction(device, ref data); }
/// <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); }
/// <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); } }
/// <inheritdoc/> protected override void OnGenericInteraction(UltravioletResource device, RoutedEventData data) { UpdateTextInputRegion(); Ultraviolet.GetInput().ShowSoftwareKeyboard(KeyboardMode.Text); data.Handled = true; base.OnGenericInteraction(device, data); }
/// <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); }
/// <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); }
/// <inheritdoc/> protected override void OnGenericInteraction(UltravioletResource device, ref RoutedEventData data) { Ultraviolet.GetInput().ShowSoftwareKeyboard(); data.Handled = true; base.OnGenericInteraction(device, ref data); }
/// <inheritdoc/> protected override void OnGenericInteraction(UltravioletResource device, RoutedEventData data) { if (!data.Handled) { Select(); OnSelectedByUser(); data.Handled = true; } base.OnGenericInteraction(device, data); }