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
- ListDictionaryInternal.cs
- TypeHelper.cs
- DBDataPermission.cs
- DefaultExpressionVisitor.cs
- StaticTextPointer.cs
- DashStyles.cs
- UITypeEditor.cs
- EventArgs.cs
- TextContainerChangeEventArgs.cs
- XmlHelper.cs
- DataGridRelationshipRow.cs
- DetailsViewRowCollection.cs
- MenuBindingsEditor.cs
- CharacterMetrics.cs
- EntityDataSourceStatementEditorForm.cs
- URL.cs
- FixedSchema.cs
- ModelServiceImpl.cs
- ExpressionEditorAttribute.cs
- DataGridViewButtonCell.cs
- ReaderWriterLock.cs
- XmlNamespaceMappingCollection.cs
- PropertyEntry.cs
- ColumnPropertiesGroup.cs
- AutomationTextAttribute.cs
- CompiledQueryCacheKey.cs
- RawStylusInputCustomDataList.cs
- PolicyImporterElementCollection.cs
- ValidationSummary.cs
- HttpProfileBase.cs
- VisualStyleTypesAndProperties.cs
- CookieParameter.cs
- TableDesigner.cs
- AttachedPropertyMethodSelector.cs
- TextSearch.cs
- CultureSpecificCharacterBufferRange.cs
- SyndicationItem.cs
- SpeechDetectedEventArgs.cs
- SuppressIldasmAttribute.cs
- EntityKey.cs
- MouseGestureConverter.cs
- ToolStripRenderEventArgs.cs
- KeyBinding.cs
- PopOutPanel.cs
- HostedHttpTransportManager.cs
- RegisteredScript.cs
- EntityCollection.cs
- Completion.cs
- SessionStateSection.cs
- UiaCoreApi.cs
- FullTextBreakpoint.cs
- TypeDescriptor.cs
- NativeMethods.cs
- CaseInsensitiveOrdinalStringComparer.cs
- SelectionListDesigner.cs
- SymDocumentType.cs
- Claim.cs
- X509SecurityTokenAuthenticator.cs
- SqlPersonalizationProvider.cs
- GenericAuthenticationEventArgs.cs
- GraphicsContainer.cs
- XamlTypeMapper.cs
- NeutralResourcesLanguageAttribute.cs
- MulticastDelegate.cs
- PropertyCondition.cs
- ToolStripSeparator.cs
- DefaultTypeArgumentAttribute.cs
- WebDescriptionAttribute.cs
- ConnectionPointGlyph.cs
- XhtmlBasicFormAdapter.cs
- PasswordDeriveBytes.cs
- CommandField.cs
- PerformanceCounterManager.cs
- HandlerFactoryCache.cs
- ControlAdapter.cs
- ListViewUpdatedEventArgs.cs
- XPathMessageFilterElementCollection.cs
- LinkedList.cs
- DataControlExtensions.cs
- QilFunction.cs
- InheritedPropertyDescriptor.cs
- DataListItemEventArgs.cs
- CodeAttributeArgumentCollection.cs
- PerfCounters.cs
- DataGridViewCellValueEventArgs.cs
- SearchExpression.cs
- HtmlLink.cs
- EditorAttribute.cs
- Table.cs
- _NegoStream.cs
- SchemaMapping.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ExpressionEditorSheet.cs
- WebPartDisplayModeCollection.cs
- DataGridViewCellPaintingEventArgs.cs
- DocumentViewerBaseAutomationPeer.cs
- SystemInfo.cs
- XmlMembersMapping.cs
- PtsHelper.cs
- GenerateHelper.cs