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
- QilDataSource.cs
- PopOutPanel.cs
- InstanceHandle.cs
- Ops.cs
- FreezableOperations.cs
- StrokeDescriptor.cs
- StreamWriter.cs
- CommandLibraryHelper.cs
- SqlDataSourceEnumerator.cs
- SiteMapSection.cs
- XmlAttributeProperties.cs
- DataGridRow.cs
- SqlClientMetaDataCollectionNames.cs
- TraceXPathNavigator.cs
- CultureNotFoundException.cs
- ObfuscationAttribute.cs
- ZipIOBlockManager.cs
- BehaviorEditorPart.cs
- ControlPropertyNameConverter.cs
- MethodExpression.cs
- FunctionMappingTranslator.cs
- TreeWalker.cs
- Configuration.cs
- MexHttpsBindingElement.cs
- CompositeDesignerAccessibleObject.cs
- XmlSchemaSubstitutionGroup.cs
- SevenBitStream.cs
- CompilerScopeManager.cs
- DynamicMethod.cs
- WorkflowRuntime.cs
- NestPullup.cs
- CodeMethodReturnStatement.cs
- ContextProperty.cs
- TraceContextRecord.cs
- HashHelper.cs
- HtmlForm.cs
- TemplateControlBuildProvider.cs
- WebPartConnectionsCancelEventArgs.cs
- DecoderReplacementFallback.cs
- WebConfigurationHost.cs
- DynamicRouteExpression.cs
- XDRSchema.cs
- Stackframe.cs
- DLinqAssociationProvider.cs
- CreateSequenceResponse.cs
- PseudoWebRequest.cs
- CodeAccessPermission.cs
- WindowsImpersonationContext.cs
- SafeFileMappingHandle.cs
- CharacterMetricsDictionary.cs
- ListBox.cs
- StylusPlugin.cs
- GeometryHitTestResult.cs
- Invariant.cs
- UriScheme.cs
- TextStore.cs
- DnsPermission.cs
- ServicesSection.cs
- SetStateEventArgs.cs
- ImageFormat.cs
- ChtmlTextBoxAdapter.cs
- ProtectedProviderSettings.cs
- ComAwareEventInfo.cs
- DoubleCollectionValueSerializer.cs
- PolyBezierSegmentFigureLogic.cs
- KeysConverter.cs
- FloaterParagraph.cs
- X509Certificate2Collection.cs
- Substitution.cs
- CommandSet.cs
- BindingValueChangedEventArgs.cs
- ErrorInfoXmlDocument.cs
- CodeThrowExceptionStatement.cs
- ProtectedProviderSettings.cs
- SamlAssertion.cs
- SamlSubject.cs
- SHA256Managed.cs
- PackageRelationship.cs
- InfoCardService.cs
- DefaultPropertyAttribute.cs
- SafeCertificateStore.cs
- RijndaelManagedTransform.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- x509utils.cs
- SchemaImporterExtensionElement.cs
- SetterTriggerConditionValueConverter.cs
- DependencyPropertyChangedEventArgs.cs
- FindSimilarActivitiesVerb.cs
- SecurityVerifiedMessage.cs
- ImageMapEventArgs.cs
- XmlSortKey.cs
- HtmlElement.cs
- oledbmetadatacollectionnames.cs
- PersonalizablePropertyEntry.cs
- EdmItemError.cs
- Application.cs
- IssuerInformation.cs
- SafeNativeMethods.cs
- SerializationSectionGroup.cs
- ExeConfigurationFileMap.cs