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
- HtmlDocument.cs
- GetLedgerEntryForRecipientRequest.cs
- XamlHostingSection.cs
- NullableFloatAverageAggregationOperator.cs
- SoapSchemaExporter.cs
- SymbolPair.cs
- infer.cs
- SiteMapPath.cs
- RegisteredScript.cs
- ExternalDataExchangeService.cs
- InProcStateClientManager.cs
- CommandHelpers.cs
- KeySpline.cs
- SQLMoneyStorage.cs
- ObjectItemConventionAssemblyLoader.cs
- CodeDirectionExpression.cs
- SamlSubjectStatement.cs
- DataGridViewImageCell.cs
- HitTestWithPointDrawingContextWalker.cs
- ExpressionPrefixAttribute.cs
- CreatingCookieEventArgs.cs
- Processor.cs
- ComponentCollection.cs
- UInt64Converter.cs
- TextRange.cs
- HandleCollector.cs
- ImageFormatConverter.cs
- SafeIUnknown.cs
- XmlSchemaImporter.cs
- Base64Stream.cs
- CorrelationTokenTypeConvertor.cs
- OracleDataAdapter.cs
- ClientRuntimeConfig.cs
- CrossSiteScriptingValidation.cs
- PropertyGridCommands.cs
- DataKey.cs
- Pair.cs
- StrongNameMembershipCondition.cs
- EqualityComparer.cs
- CopyOnWriteList.cs
- PropertyItemInternal.cs
- LocatorPartList.cs
- MdiWindowListStrip.cs
- CompilerLocalReference.cs
- ApplicationGesture.cs
- PersianCalendar.cs
- ObjectQuery.cs
- Util.cs
- ImageConverter.cs
- ModelItemExtensions.cs
- ArrayConverter.cs
- PaperSize.cs
- DispatchWrapper.cs
- ViewBox.cs
- DateTimeConverter2.cs
- TrustLevel.cs
- DataFormats.cs
- SqlCacheDependency.cs
- TemplatedWizardStep.cs
- SdlChannelSink.cs
- RunClient.cs
- ClientConvert.cs
- MexServiceChannelBuilder.cs
- TextBoxBase.cs
- BitFlagsGenerator.cs
- InstallerTypeAttribute.cs
- PlatformCulture.cs
- CacheDependency.cs
- OdbcEnvironmentHandle.cs
- GAC.cs
- MemoryRecordBuffer.cs
- QilSortKey.cs
- ResourceProperty.cs
- UIElementCollection.cs
- ObjectToken.cs
- ErasingStroke.cs
- DiagnosticTrace.cs
- Logging.cs
- AssertFilter.cs
- EventRecordWrittenEventArgs.cs
- HMACSHA384.cs
- Int32Rect.cs
- DataStorage.cs
- PKCS1MaskGenerationMethod.cs
- ZipIOFileItemStream.cs
- GenericTextProperties.cs
- HttpListenerRequestTraceRecord.cs
- SqlRecordBuffer.cs
- AnnouncementInnerClient11.cs
- SimpleColumnProvider.cs
- ColumnMapCopier.cs
- GACIdentityPermission.cs
- InternalCache.cs
- DataControlFieldCollection.cs
- CodeCommentStatementCollection.cs
- SplineQuaternionKeyFrame.cs
- StrokeCollectionConverter.cs
- Clause.cs
- ParserExtension.cs
- DecoderBestFitFallback.cs