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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RefreshPropertiesAttribute.cs
- DataConnectionHelper.cs
- SystemPens.cs
- TabControl.cs
- CodeActivityMetadata.cs
- SmiContextFactory.cs
- TextRangeEditTables.cs
- PocoEntityKeyStrategy.cs
- printdlgexmarshaler.cs
- HtmlGenericControl.cs
- Pointer.cs
- FilteredDataSetHelper.cs
- Property.cs
- ClientSettings.cs
- SqlColumnizer.cs
- Baml2006ReaderContext.cs
- UriScheme.cs
- ThicknessKeyFrameCollection.cs
- XmlWriter.cs
- PropertyValueUIItem.cs
- SspiWrapper.cs
- ServiceInstanceProvider.cs
- Util.cs
- DataGridViewAutoSizeModeEventArgs.cs
- Validator.cs
- DBBindings.cs
- EditorZone.cs
- SystemResources.cs
- InputLanguageProfileNotifySink.cs
- ResourceKey.cs
- TagMapCollection.cs
- LoginStatusDesigner.cs
- WorkflowServiceOperationListItem.cs
- FontWeightConverter.cs
- SamlAuthorityBinding.cs
- SafeCryptHandles.cs
- BaseTemplateParser.cs
- TypeUnloadedException.cs
- TableLayoutRowStyleCollection.cs
- TreeNodeCollection.cs
- ADMembershipUser.cs
- GridView.cs
- CacheDependency.cs
- CollectionBase.cs
- PieceNameHelper.cs
- NameValueConfigurationCollection.cs
- DataSourceControlBuilder.cs
- StringConcat.cs
- Marshal.cs
- ZipIOLocalFileHeader.cs
- DataRowChangeEvent.cs
- ClearTypeHintValidation.cs
- FontWeight.cs
- TypeLibConverter.cs
- Decorator.cs
- UnknownWrapper.cs
- UnsafeNativeMethods.cs
- UserPreferenceChangedEventArgs.cs
- NamespaceEmitter.cs
- DrawingContext.cs
- Merger.cs
- RegularExpressionValidator.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- DashStyle.cs
- ExtractorMetadata.cs
- DrawingGroupDrawingContext.cs
- RolePrincipal.cs
- FontStretches.cs
- WorkItem.cs
- PanelDesigner.cs
- ResourceKey.cs
- RegexCharClass.cs
- WsdlBuildProvider.cs
- AssociationTypeEmitter.cs
- RichTextBoxConstants.cs
- EntityContainerEmitter.cs
- IssuedTokenServiceCredential.cs
- DefaultSection.cs
- GeometryValueSerializer.cs
- WinFormsSpinner.cs
- KeyProperty.cs
- SslStreamSecurityBindingElement.cs
- ReaderOutput.cs
- XmlSchemaObjectTable.cs
- FastEncoder.cs
- DifferencingCollection.cs
- DataServiceRequestException.cs
- AuthenticationSection.cs
- DataGridViewButtonColumn.cs
- RequestQueryParser.cs
- StringFreezingAttribute.cs
- MenuItemBindingCollection.cs
- _NestedMultipleAsyncResult.cs
- AttributedMetaModel.cs
- ScrollPattern.cs
- CompleteWizardStep.cs
- WsdlInspector.cs
- CacheEntry.cs
- TaiwanCalendar.cs
- ProcessProtocolHandler.cs