Intersoft.Client.Framework Namespace : ISRoutedEventArgs Class |
<DoNotObfuscateTypeAttribute()> Public Class ISRoutedEventArgs Inherits System.Windows.RoutedEventArgs
Dim instance As ISRoutedEventArgs
[DoNotObfuscateTypeAttribute()] public class ISRoutedEventArgs : System.Windows.RoutedEventArgs
[DoNotObfuscateTypeAttribute()] public ref class ISRoutedEventArgs : public System.Windows.RoutedEventArgs
Routed event introduces bubbling and tunneling routing strategy.
In bubbling routing strategy, the event handlers on the event source are invoked. The routed event then routes to successive parent elements until reaching the element tree root. Most routed events use the bubbling routing strategy.
The following example shows how to handle the KeyDown routed event, which is a bubbling event.
XAML |
Copy Code
|
---|---|
<Grid x:Name="LayoutRoot"> <StackPanel> <Intersoft:UXTextBox Name="textBox1" Width="150" HorizontalAlignment="Left"/> <TextBlock Name="statusText" Width="200" HorizontalAlignment="Left"/> </StackPanel> </Grid> |
C# |
Copy Code
|
---|---|
using System.Windows; using Intersoft.Client.Framework; using Intersoft.Client.UI.Navigation; using CoreInput = Intersoft.Client.Framework.Input; namespace ClientUIApplication_Docs.RoutedEvents { public partial class BubblingEvent : UXPage { public BubblingEvent() { InitializeComponent(); this.Loaded += new RoutedEventHandler(BubblingEvent_Loaded); } void BubblingEvent_Loaded(object sender, RoutedEventArgs e) { // Handle the KeyDown routed event in the LayoutRoot (Grid) element LayoutRoot.AddHandler(CoreInput.Keyboard.KeyDownEvent, new CoreInput.KeyEventHandler(OnKeyDown)); } void OnKeyDown(object sender, CoreInput.KeyEventArgs e) { // This function will be invoked when you type into the textbox, // although the event is actually handled in LayoutRoot, not the textbox element directly. statusText.Text = "Invoked from a bubbling event (KeyDownEvent): " + e.Key.ToString(); } } } |
System.Object
System.EventArgs
System.Windows.RoutedEventArgs
Intersoft.Client.Framework.ISRoutedEventArgs
Intersoft.Client.Framework.ApplicationLaunchEventArgs
Intersoft.Client.Framework.ApplicationLaunchFailedEventArgs
Intersoft.Client.Framework.ApplicationLaunchProgressEventArgs
Intersoft.Client.Framework.AuthenticatingEventArgs
Intersoft.Client.Framework.AuthenticationEventArgs
Intersoft.Client.Framework.ContentChangedRoutedEventArgs
Intersoft.Client.Framework.DataBoundRoutedEventArgs
Intersoft.Client.Framework.Input.CanExecuteRoutedEventArgs
Intersoft.Client.Framework.Input.CanQueryStatusRoutedEventArgs
Intersoft.Client.Framework.Input.ExecutedRoutedEventArgs
Intersoft.Client.Framework.Input.KeyboardFocusChangedEventArgs
Intersoft.Client.Framework.Input.KeyEventArgs
Intersoft.Client.Framework.Input.MouseEventArgs
Intersoft.Client.Framework.Input.MouseWheelEventArgs
Intersoft.Client.Framework.Input.QueryStatusRoutedEventArgs
Intersoft.Client.Framework.PropertyChangedEventArgs<T>
Intersoft.Client.Framework.PropertyChangingEventArgs<T>
Intersoft.Client.Framework.RequestingAuthenticationEventArgs
Intersoft.Client.Framework.SelectionChangedEventArgs
Intersoft.Client.Framework.WindowEventArgs
Intersoft.Client.UI.Aqua.OverflowItemChangedEventArgs
Intersoft.Client.UI.Aqua.OverflowItemChangingEventArgs
Intersoft.Client.UI.Aqua.UXCollection.TreeViewCollapsedEventArgs
Intersoft.Client.UI.Aqua.UXCollection.TreeViewExpandEventArgs
Intersoft.Client.UI.Aqua.UXCollection.TreeViewTreeLineVisibilityChangedEventArgs
Intersoft.Client.UI.Aqua.UXCollection.UXSearchBox.QueryTextChangedEventArgs
Intersoft.Client.UI.Aqua.UXDesktop.WindowChangeEventArgs
Intersoft.Client.UI.Aqua.UXInput.FilesUploadEventArgs
Intersoft.Client.UI.Aqua.UXInput.UploadEventArgs
Intersoft.Client.UI.Aqua.UXInput.UXCalendarDisplayModeChangedEventArgs
Intersoft.Client.UI.Aqua.UXInput.UXCalendarSelectedDateChangedEventArgs
Intersoft.Client.UI.Aqua.UXInput.UXMaskedInputErrorEventArgs
Intersoft.Client.UI.Aqua.UXInput.UXMaskedInputValueChangedEventArgs
Intersoft.Client.UI.Aqua.UXInput.UXSpinnerSpinEventArgs
Intersoft.Client.UI.Aqua.UXInput.UXUpDownParseErrorEventArgs
Intersoft.Client.UI.Controls.DownloadProgressRoutedEventArgs
Intersoft.Client.UI.Controls.DragCompletedEventArgs
Intersoft.Client.UI.Controls.DragDeltaEventArgs
Intersoft.Client.UI.Controls.DragStartedEventArgs
Intersoft.Client.UI.Controls.ExceptionRoutedEventArgs
Intersoft.Client.UI.Controls.Interactivity.DragDropShadowEventArgs
Intersoft.Client.UI.Controls.Interactivity.DragEventArgs
Intersoft.Client.UI.Controls.Interactivity.DropObjectChangedRoutedEventArgs
Intersoft.Client.UI.Controls.Interactivity.GiveFeedbackEventArgs
Intersoft.Client.UI.Controls.Interactivity.QueryContinueDragEventArgs
Intersoft.Client.UI.Controls.Interactivity.QueryDropStateEventArgs
Intersoft.Client.UI.Controls.Interactivity.UXPanelActionEventArgs
Intersoft.Client.UI.Controls.ScrollEventArgs
Intersoft.Client.UI.Controls.UXPopUpEventArgs
Intersoft.Client.UI.Controls.ValueChangedEventArgs
Intersoft.Client.UI.Data.UXDataComboBox.QueryTextChangedEventArgs
Intersoft.Client.UI.Data.UXGridViewAutoGeneratingColumnEventArgs
Intersoft.Client.UI.Data.UXGridViewBeginningEditEventArgs
Intersoft.Client.UI.Data.UXGridViewCellEditEndedEventArgs
Intersoft.Client.UI.Data.UXGridViewCellEditEndingEventArgs
Intersoft.Client.UI.Data.UXGridViewColumnEventArgs
Intersoft.Client.UI.Data.UXGridViewColumnReorderingEventArgs
Intersoft.Client.UI.Data.UXGridViewExportingEventArgs
Intersoft.Client.UI.Data.UXGridViewPreparingCellForEditEventArgs
Intersoft.Client.UI.Data.UXGridViewRowClipboardEventArgs
Intersoft.Client.UI.Data.UXGridViewRowDetailsEventArgs
Intersoft.Client.UI.Data.UXGridViewRowEditEndedEventArgs
Intersoft.Client.UI.Data.UXGridViewRowEditEndingEventArgs
Intersoft.Client.UI.Data.UXGridViewRowEventArgs
Intersoft.Client.UI.Data.UXGridViewRowGroupHeaderEventArgs
Intersoft.Client.UI.Data.UXGridViewSelectionChangedEventArgs
Intersoft.Client.UI.DocumentViewers.DocumentViewerEndPrintEventArgs
Intersoft.Client.UI.Navigation.ChildNavigationEventArgs
Intersoft.Client.UI.Navigation.FragmentNavigationEventArgs
Intersoft.Client.UI.Navigation.NavigatingCancelEventArgs
Intersoft.Client.UI.Navigation.NavigationDirectionChangedEventArgs
Intersoft.Client.UI.Navigation.NavigationEventArgs
Intersoft.Client.UI.Navigation.NavigationFailedEventArgs
Intersoft.Client.UI.Navigation.NavigationProgressEventArgs
Intersoft.Client.UI.Navigation.NavigationStateChangedEventArgs
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2