Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / 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. 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
- Barrier.cs
- CompositeCollection.cs
- CustomTypeDescriptor.cs
- JavaScriptObjectDeserializer.cs
- QilLiteral.cs
- DataBindingHandlerAttribute.cs
- VisemeEventArgs.cs
- BitmapFrameEncode.cs
- GridItem.cs
- PenContexts.cs
- ValidationError.cs
- WCFServiceClientProxyGenerator.cs
- SchemaInfo.cs
- SignatureToken.cs
- DefinitionBase.cs
- AudioFormatConverter.cs
- GAC.cs
- DurationConverter.cs
- EventProxy.cs
- ThreadAbortException.cs
- ProgressPage.cs
- DrawToolTipEventArgs.cs
- RotateTransform.cs
- CategoryState.cs
- ValueQuery.cs
- ImpersonateTokenRef.cs
- DataServiceEntityAttribute.cs
- MarkedHighlightComponent.cs
- HttpRequestWrapper.cs
- CompilerGlobalScopeAttribute.cs
- Token.cs
- UpdatableWrapper.cs
- RTLAwareMessageBox.cs
- SqlConnectionString.cs
- FixUp.cs
- EventTask.cs
- TypeResolvingOptions.cs
- Propagator.cs
- EditingCommands.cs
- Soap12ProtocolImporter.cs
- FileInfo.cs
- ArgumentException.cs
- BamlRecordHelper.cs
- CapabilitiesState.cs
- tabpagecollectioneditor.cs
- CompilationRelaxations.cs
- EdgeProfileValidation.cs
- ToolStripInSituService.cs
- MLangCodePageEncoding.cs
- DoubleAnimationUsingPath.cs
- XmlName.cs
- Form.cs
- KoreanCalendar.cs
- ReachFixedPageSerializer.cs
- AutomationEventArgs.cs
- Literal.cs
- BufferedMessageData.cs
- TraceRecord.cs
- CodeMethodInvokeExpression.cs
- WebPartDisplayModeCancelEventArgs.cs
- BitmapSourceSafeMILHandle.cs
- HttpListenerPrefixCollection.cs
- SafeNativeMethods.cs
- ContextMarshalException.cs
- SpotLight.cs
- Sql8ConformanceChecker.cs
- EditableRegion.cs
- ClientSettingsStore.cs
- DataControlCommands.cs
- ConsumerConnectionPointCollection.cs
- WrappedIUnknown.cs
- LOSFormatter.cs
- XmlSchemaAttributeGroup.cs
- RectangleGeometry.cs
- EnvelopedSignatureTransform.cs
- ZipIOLocalFileHeader.cs
- hwndwrapper.cs
- HtmlInputPassword.cs
- Single.cs
- ToolboxSnapDragDropEventArgs.cs
- Transform3DCollection.cs
- ConfigsHelper.cs
- DataGridViewSelectedCellCollection.cs
- JournalEntryStack.cs
- OleDbParameter.cs
- MailAddress.cs
- DataFormat.cs
- AttributeQuery.cs
- ReflectTypeDescriptionProvider.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- ColorMap.cs
- WebPartMovingEventArgs.cs
- RestHandler.cs
- ErrorTolerantObjectWriter.cs
- Int32Storage.cs
- PropertyPushdownHelper.cs
- Axis.cs
- RowCache.cs
- DocobjHost.cs
- PageTheme.cs