| title | Handling User Input |
|---|---|
| page_title | Handling User Input | Telerik Presentation Framework |
| description | Mouse and keyboard user input is accepted from Windows event notification in RadControl, but actually handled in RadElement and RadItem objects. |
| slug | winforms/telerik-presentation-framework/handling-user-input |
| tags | handling,user,input |
| published | true |
| position | 8 |
| previous_url | tpf-handling-user-input |
Mouse and keyboard user input is accepted from Windows event notification in RadControl, but actually handled in RadElement and RadItem objects.
-
RadControl is the object that is first notified of Windows events, i.e. mouse over, key press, etc., and calls corresponding methods of RadElement through the RadControl RadRootElement property.
-
RadElement introduces methods for dispatching user input information. This information is acted on if the RadElement ShouldHandleMouseInput property is true. By default, ShouldHandleMouseInput is set false and must be turned on explicitly. The NotifyParentOnMouseInput property is introduced in RadElement to control the [bubbling]({%slug winforms/telerik-presentation-framework/events/routed-events%}) of mouse events to parent elements. By default NotifyParentOnMouseInput is false.
-
RadItem.ShouldHandleMouseInput is true by default. RadItem also introduces keyboard methods and events including KeyDown, KeyPress and KeyUp events.
The diagram below shows the inheritance tree where the RootRadElement descends from RadItem, and where RadItem ultimately descends from RadElement:
-
[Animations]({%slug winforms/telerik-presentation-framework/animations%})
-
[Dependency Properties]({%slug winforms/telerik-presentation-framework/dependency-properties%})
-
[HTML-like Text Formatting]({%slug winforms/telerik-presentation-framework/html-like-text-formatting%})
-
[Inherit themes from RadControls derivatives]({%slug winforms/telerik-presentation-framework/inherit-themes-from-radcontrols-derivatives%})
-
[Microsoft Active Accessibility Support]({%slug winforms/telerik-presentation-framework/microsoft-active-accessibility-support%})
-
[Override Theme Settings at Run Time]({%slug winforms/telerik-presentation-framework/override-theme-settings-at-run-time%})
-
[RadMarkupDialog]({%slug winforms/telerik-presentation-framework/radmarkupdialog%})
