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
- SettingsProviderCollection.cs
- ClientSponsor.cs
- OrderByQueryOptionExpression.cs
- WebEvents.cs
- DesignerHost.cs
- CssClassPropertyAttribute.cs
- DataControlFieldCollection.cs
- InputBuffer.cs
- RC2CryptoServiceProvider.cs
- XmlNullResolver.cs
- PersonalizationProviderCollection.cs
- EntityDataSourceViewSchema.cs
- UnionQueryOperator.cs
- CredentialCache.cs
- ExtentJoinTreeNode.cs
- ToolStripRendererSwitcher.cs
- SafeNativeMethods.cs
- ValidatorAttribute.cs
- XPathMultyIterator.cs
- EmptyEnumerator.cs
- StreamingContext.cs
- Inline.cs
- OracleDateTime.cs
- XmlValueConverter.cs
- MenuEventArgs.cs
- XmlElementCollection.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- SamlAssertion.cs
- PackageRelationship.cs
- SelectionItemPatternIdentifiers.cs
- TextParentUndoUnit.cs
- AccessibleObject.cs
- WindowsTitleBar.cs
- SoapAttributeAttribute.cs
- ADConnectionHelper.cs
- Baml2006KnownTypes.cs
- EastAsianLunisolarCalendar.cs
- Tuple.cs
- CustomAssemblyResolver.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- PointHitTestResult.cs
- ConnectionProviderAttribute.cs
- DbDeleteCommandTree.cs
- AuthenticatingEventArgs.cs
- FontUnitConverter.cs
- columnmapfactory.cs
- InternalConfigSettingsFactory.cs
- AsyncResult.cs
- ToolStripPanelCell.cs
- CornerRadiusConverter.cs
- SafeFileMapViewHandle.cs
- LocationSectionRecord.cs
- LeaseManager.cs
- DefaultWorkflowLoaderService.cs
- SpinLock.cs
- WebPartDeleteVerb.cs
- MatrixAnimationUsingPath.cs
- ServiceReference.cs
- UshortList2.cs
- ReaderWriterLockWrapper.cs
- FileAuthorizationModule.cs
- Classification.cs
- EnumType.cs
- ComboBox.cs
- PopupRoot.cs
- TraceContextEventArgs.cs
- ConfigurationPropertyAttribute.cs
- ExtensionDataObject.cs
- COM2FontConverter.cs
- TextUtf8RawTextWriter.cs
- SrgsRule.cs
- UniqueSet.cs
- ProcessInputEventArgs.cs
- JsonReaderWriterFactory.cs
- InfoCardSymmetricCrypto.cs
- ItemsChangedEventArgs.cs
- RightsManagementEncryptedStream.cs
- TemplatedMailWebEventProvider.cs
- ReaderContextStackData.cs
- ResourceManager.cs
- MinimizableAttributeTypeConverter.cs
- AutomationIdentifier.cs
- DesignerEditorPartChrome.cs
- Stack.cs
- ParallelTimeline.cs
- XmlDocumentFieldSchema.cs
- MatrixUtil.cs
- CookieProtection.cs
- AttachmentCollection.cs
- MultiAsyncResult.cs
- DataGridViewCellValueEventArgs.cs
- TemplateControlCodeDomTreeGenerator.cs
- ItemContainerGenerator.cs
- UnsafeNativeMethodsCLR.cs
- StringFormat.cs
- ApplyImportsAction.cs
- EventLog.cs
- StylusButtonEventArgs.cs
- DefaultShape.cs
- SeparatorAutomationPeer.cs