Code:
/ 4.0 / 4.0 / 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. 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
- SerializableAuthorizationContext.cs
- AppDomainManager.cs
- StringComparer.cs
- OpacityConverter.cs
- MethodMessage.cs
- TableSectionStyle.cs
- NotifyInputEventArgs.cs
- DataGridBoolColumn.cs
- PasswordDeriveBytes.cs
- FlowStep.cs
- UserControlDesigner.cs
- ResourcePool.cs
- sitestring.cs
- Registration.cs
- MouseActionConverter.cs
- MouseDevice.cs
- ResXResourceReader.cs
- nulltextnavigator.cs
- RuntimeHelpers.cs
- DependencyPropertyValueSerializer.cs
- SymbolEqualComparer.cs
- UriExt.cs
- CustomValidator.cs
- AnonymousIdentificationModule.cs
- RichListBox.cs
- TargetException.cs
- WebPartEditorOkVerb.cs
- TypedLocationWrapper.cs
- EntityAdapter.cs
- ProfileParameter.cs
- ThreadAttributes.cs
- CodeDomSerializerException.cs
- ProvidersHelper.cs
- _CommandStream.cs
- InputLanguageSource.cs
- ToolStripPanelCell.cs
- IdentitySection.cs
- AsnEncodedData.cs
- AsyncResult.cs
- DependencyObjectValidator.cs
- MergeEnumerator.cs
- ControlHelper.cs
- SystemTcpConnection.cs
- DirectoryNotFoundException.cs
- TraceSection.cs
- TemplatedWizardStep.cs
- SqlReorderer.cs
- IQueryable.cs
- PreviewPrintController.cs
- panel.cs
- UnsafeMethods.cs
- XmlBinaryWriter.cs
- IDReferencePropertyAttribute.cs
- ToolStripItemRenderEventArgs.cs
- SimpleApplicationHost.cs
- DbTypeMap.cs
- StateChangeEvent.cs
- ProviderMetadata.cs
- EntityConnectionStringBuilderItem.cs
- TextBoxLine.cs
- DataBindingCollectionEditor.cs
- LinqDataSourceInsertEventArgs.cs
- ThreadSafeList.cs
- dataprotectionpermissionattribute.cs
- AppSettingsExpressionBuilder.cs
- GroupByExpressionRewriter.cs
- RegisteredArrayDeclaration.cs
- XmlComment.cs
- Sentence.cs
- SystemBrushes.cs
- TimeSpanStorage.cs
- _SslState.cs
- HttpResponseInternalWrapper.cs
- PartManifestEntry.cs
- SmiMetaDataProperty.cs
- EntryPointNotFoundException.cs
- DetailsViewPageEventArgs.cs
- CommandPlan.cs
- BookmarkEventArgs.cs
- FigureParagraph.cs
- MoveSizeWinEventHandler.cs
- ConfigXmlReader.cs
- LongSumAggregationOperator.cs
- PassportPrincipal.cs
- FieldMetadata.cs
- XmlElementElement.cs
- PrintEvent.cs
- OleDbMetaDataFactory.cs
- ExtendedPropertyCollection.cs
- ValidationEventArgs.cs
- Cursor.cs
- BamlTreeNode.cs
- RegisteredArrayDeclaration.cs
- BamlResourceDeserializer.cs
- OdbcFactory.cs
- MethodImplAttribute.cs
- PrePrepareMethodAttribute.cs
- GlobalEventManager.cs
- Vector3D.cs
- Animatable.cs