Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Input / InputEventArgs.cs / 1 / InputEventArgs.cs
using System.Collections; using System; using System.Security; using MS.Internal.PresentationCore; // for FriendAccessAllowed namespace System.Windows.Input { ////// The InputEventArgs class represents a type of RoutedEventArgs that /// are relevant to all input events. /// [FriendAccessAllowed ] // expose UserInitiated public class InputEventArgs : RoutedEventArgs { ////// Initializes a new instance of the InputEventArgs class. /// /// /// The input device to associate with this event. /// /// /// The time when the input occured. /// public InputEventArgs(InputDevice inputDevice, int timestamp) { /* inputDevice parameter being null is valid*/ /* timestamp parameter is valuetype, need not be checked */ _inputDevice = inputDevice; _timestamp = timestamp; } ////// Read-only access to the input device that initiated this /// event. /// public InputDevice Device { get {return _inputDevice;} internal set {_inputDevice = value;} } ////// Read-only access to the input timestamp. /// public int Timestamp { get {return _timestamp;} } ////// The mechanism used to call the type-specific handler on the /// target. /// /// /// The generic handler to call in a type-specific way. /// /// /// The target to call the handler on. /// protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { InputEventHandler handler = (InputEventHandler) genericHandler; handler(genericTarget, this); } private InputDevice _inputDevice; private static int _timestamp; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlBuffer.cs
- DesignerActionUI.cs
- HyperLink.cs
- WebServiceEnumData.cs
- MutexSecurity.cs
- FunctionUpdateCommand.cs
- ObjectConverter.cs
- Metadata.cs
- XamlStyleSerializer.cs
- ExtractedStateEntry.cs
- ApplicationActivator.cs
- ElementHostAutomationPeer.cs
- DockPattern.cs
- FileStream.cs
- DesignerTransaction.cs
- XamlParser.cs
- StackOverflowException.cs
- UIElement3D.cs
- CodeNamespaceImport.cs
- SqlClientMetaDataCollectionNames.cs
- FamilyTypefaceCollection.cs
- MultiSelectRootGridEntry.cs
- FieldNameLookup.cs
- Animatable.cs
- FormViewModeEventArgs.cs
- SafeFileMappingHandle.cs
- ZoomPercentageConverter.cs
- PtsHost.cs
- ProcessHostFactoryHelper.cs
- HttpResponseBase.cs
- StateChangeEvent.cs
- ListViewItemMouseHoverEvent.cs
- SelectionHighlightInfo.cs
- KeySplineConverter.cs
- TextTreeNode.cs
- SiteMap.cs
- CatalogZoneBase.cs
- RegexMatchCollection.cs
- AppDomainCompilerProxy.cs
- DbProviderServices.cs
- FileClassifier.cs
- BoundPropertyEntry.cs
- DragSelectionMessageFilter.cs
- BaseDataBoundControl.cs
- QilStrConcatenator.cs
- XmlParserContext.cs
- MarkupCompilePass2.cs
- SpecularMaterial.cs
- PropertyEmitterBase.cs
- MutexSecurity.cs
- Literal.cs
- contentDescriptor.cs
- SystemParameters.cs
- XmlWriter.cs
- SymbolEqualComparer.cs
- InvokeBase.cs
- __Error.cs
- TemplateContainer.cs
- Object.cs
- DetailsViewRow.cs
- GetPageNumberCompletedEventArgs.cs
- RangeValueProviderWrapper.cs
- FormViewDesigner.cs
- DownloadProgressEventArgs.cs
- ListBoxAutomationPeer.cs
- MdbDataFileEditor.cs
- Pts.cs
- Command.cs
- GatewayIPAddressInformationCollection.cs
- XmlSchemaFacet.cs
- SubqueryTrackingVisitor.cs
- XmlSchemaComplexContentRestriction.cs
- ResourcePart.cs
- FlowLayoutSettings.cs
- MultiBinding.cs
- RegexCharClass.cs
- X509Utils.cs
- SqlConnectionManager.cs
- RemotingException.cs
- MediaScriptCommandRoutedEventArgs.cs
- ControlDesignerState.cs
- GotoExpression.cs
- DashStyle.cs
- RoutedUICommand.cs
- ComplexObject.cs
- DataExpression.cs
- UnknownBitmapEncoder.cs
- ModelItemDictionary.cs
- HttpTransportBindingElement.cs
- ScriptReferenceBase.cs
- CodeCastExpression.cs
- FileClassifier.cs
- HybridDictionary.cs
- KerberosTokenFactoryCredential.cs
- CaretElement.cs
- Hyperlink.cs
- FileLevelControlBuilderAttribute.cs
- Encoding.cs
- PreProcessInputEventArgs.cs
- ComponentEditorForm.cs