Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / InputEventArgs.cs / 1305600 / 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
- ProcessStartInfo.cs
- ObjectView.cs
- WhitespaceRule.cs
- HtmlElementEventArgs.cs
- ReceiveSecurityHeader.cs
- FormsAuthenticationUser.cs
- Stylesheet.cs
- Keyboard.cs
- ExpanderAutomationPeer.cs
- smtppermission.cs
- ResXDataNode.cs
- SqlInternalConnectionSmi.cs
- RoleGroupCollection.cs
- FileLoadException.cs
- RecordManager.cs
- PropertyState.cs
- DetailsViewPageEventArgs.cs
- ObservableCollection.cs
- BrushConverter.cs
- DecoderBestFitFallback.cs
- DbProviderSpecificTypePropertyAttribute.cs
- DocumentScope.cs
- TabletDeviceInfo.cs
- XmlObjectSerializer.cs
- TrackingMemoryStream.cs
- CodeIdentifiers.cs
- XmlSchemaImporter.cs
- FontFamilyValueSerializer.cs
- SrgsGrammarCompiler.cs
- SerializationObjectManager.cs
- MailMessageEventArgs.cs
- XmlIlVisitor.cs
- Timer.cs
- LineSegment.cs
- AnnotationHighlightLayer.cs
- ServiceDescriptionImporter.cs
- DispatcherOperation.cs
- LocatorGroup.cs
- Utils.cs
- GeometryConverter.cs
- CodeMethodReturnStatement.cs
- SecurityHeaderLayout.cs
- TextParagraphProperties.cs
- DataGridComboBoxColumn.cs
- ComAdminWrapper.cs
- NotifyIcon.cs
- StylusPlugin.cs
- WebPartConnectionsCancelVerb.cs
- CharUnicodeInfo.cs
- EntitySqlQueryState.cs
- LinqDataSourceValidationException.cs
- StaticContext.cs
- SortFieldComparer.cs
- TextWriter.cs
- CacheRequest.cs
- View.cs
- AnimationClockResource.cs
- BoolLiteral.cs
- ProxyWebPartManagerDesigner.cs
- While.cs
- Schema.cs
- NativeMethods.cs
- MessagePartSpecification.cs
- Interlocked.cs
- QilList.cs
- ProfileInfo.cs
- FormatException.cs
- SqlTypeConverter.cs
- SecurityResources.cs
- ListViewGroupCollectionEditor.cs
- PrefixQName.cs
- MetadataArtifactLoaderResource.cs
- AsyncPostBackErrorEventArgs.cs
- RSACryptoServiceProvider.cs
- ImageMapEventArgs.cs
- XXXOnTypeBuilderInstantiation.cs
- BaseTreeIterator.cs
- SubstitutionList.cs
- Connection.cs
- Bold.cs
- SectionInformation.cs
- DtrList.cs
- CommonProperties.cs
- InputBinding.cs
- StatusBarAutomationPeer.cs
- EnumUnknown.cs
- Stroke.cs
- HandlerBase.cs
- UnaryOperationBinder.cs
- OdbcConnectionHandle.cs
- TimerElapsedEvenArgs.cs
- PanelStyle.cs
- SafeTimerHandle.cs
- DataTableReader.cs
- XmlSchemaException.cs
- WindowsPen.cs
- DefaultHttpHandler.cs
- PageThemeCodeDomTreeGenerator.cs
- DefaultWorkflowSchedulerService.cs
- AutomationPatternInfo.cs