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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MethodSignatureGenerator.cs
- TextRenderingModeValidation.cs
- WorkflowViewManager.cs
- ToolStripContentPanelRenderEventArgs.cs
- Pen.cs
- EventMappingSettings.cs
- ExpressionBuilder.cs
- MiniLockedBorderGlyph.cs
- CheckBoxAutomationPeer.cs
- ProfileManager.cs
- StylusSystemGestureEventArgs.cs
- XmlSchemaSimpleTypeList.cs
- HtmlPhoneCallAdapter.cs
- BCLDebug.cs
- CompiledQueryCacheEntry.cs
- MultiPartWriter.cs
- PropertyEmitterBase.cs
- OptimizedTemplateContentHelper.cs
- TextBox.cs
- AnnotationStore.cs
- XamlSerializer.cs
- PageAsyncTask.cs
- IDReferencePropertyAttribute.cs
- SoapReflector.cs
- ResourceSet.cs
- DNS.cs
- BufferedGraphicsContext.cs
- XmlSchemaSubstitutionGroup.cs
- AppDomainFactory.cs
- DataServiceConfiguration.cs
- ComPlusAuthorization.cs
- SettingsPropertyWrongTypeException.cs
- InputLanguageCollection.cs
- SoapReflectionImporter.cs
- MachineKeySection.cs
- FormViewUpdatedEventArgs.cs
- Int32Rect.cs
- NumericUpDown.cs
- TagPrefixInfo.cs
- TargetControlTypeCache.cs
- JsonObjectDataContract.cs
- SelectionChangedEventArgs.cs
- TagPrefixAttribute.cs
- RankException.cs
- Set.cs
- ApplicationDirectoryMembershipCondition.cs
- TypeUtils.cs
- XmlElementAttributes.cs
- ButtonField.cs
- _LocalDataStoreMgr.cs
- datacache.cs
- ArgIterator.cs
- XamlClipboardData.cs
- CompositeDataBoundControl.cs
- TextBounds.cs
- CodeMethodReturnStatement.cs
- EventArgs.cs
- TextAutomationPeer.cs
- ClientBuildManager.cs
- _NativeSSPI.cs
- InvalidFilterCriteriaException.cs
- ObjectStateEntry.cs
- Emitter.cs
- ScriptingProfileServiceSection.cs
- PrintPreviewControl.cs
- TextEditor.cs
- LinkedResource.cs
- TableCell.cs
- XmlObjectSerializer.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- FormatterConverter.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- DynamicPropertyHolder.cs
- SafeEventLogReadHandle.cs
- SponsorHelper.cs
- ComponentDispatcher.cs
- SingletonChannelAcceptor.cs
- BindingContext.cs
- SecurityTokenSerializer.cs
- SrgsElement.cs
- User.cs
- WorkflowService.cs
- HttpRawResponse.cs
- AesCryptoServiceProvider.cs
- IssuedTokenServiceElement.cs
- DropShadowEffect.cs
- DataService.cs
- XmlSchemaComplexType.cs
- XamlReader.cs
- DataRecordObjectView.cs
- Pen.cs
- ErrorEventArgs.cs
- RuleSettingsCollection.cs
- SAPICategories.cs
- ChameleonKey.cs
- Int16AnimationBase.cs
- ModelItemCollection.cs
- SelectedGridItemChangedEvent.cs
- StaticContext.cs
- HiddenField.cs