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
- SecuritySessionServerSettings.cs
- ReturnType.cs
- Sequence.cs
- ArcSegment.cs
- Rect3DConverter.cs
- DSASignatureFormatter.cs
- CommandDevice.cs
- ImmutablePropertyDescriptorGridEntry.cs
- PropertyGeneratedEventArgs.cs
- DataPagerFieldCommandEventArgs.cs
- SimpleBitVector32.cs
- Pkcs9Attribute.cs
- CodeGenerator.cs
- SafeNativeMethodsMilCoreApi.cs
- PriorityBindingExpression.cs
- WindowsToolbar.cs
- Part.cs
- SystemInfo.cs
- EntityDataSourceDesignerHelper.cs
- SubMenuStyleCollection.cs
- NavigationProperty.cs
- UpdatePanelControlTrigger.cs
- PersonalizationProviderHelper.cs
- PageTheme.cs
- WindowsEditBoxRange.cs
- KerberosSecurityTokenProvider.cs
- sqlser.cs
- MediaContextNotificationWindow.cs
- ProxyElement.cs
- DataGridViewCellMouseEventArgs.cs
- ConnectionStringsExpressionEditor.cs
- DbParameterHelper.cs
- XmlSerializerFactory.cs
- StateDesigner.LayoutSelectionGlyph.cs
- XslNumber.cs
- DesignSurfaceServiceContainer.cs
- SrgsItemList.cs
- PropertyTabAttribute.cs
- NavigationCommands.cs
- XmlTextEncoder.cs
- XmlRawWriterWrapper.cs
- DATA_BLOB.cs
- MemberExpression.cs
- CancellationHandlerDesigner.cs
- TypeConverterHelper.cs
- InputBinder.cs
- GorillaCodec.cs
- DataBindingExpressionBuilder.cs
- PrinterResolution.cs
- SqlMethodAttribute.cs
- APCustomTypeDescriptor.cs
- DecimalConstantAttribute.cs
- SystemNetworkInterface.cs
- StreamSecurityUpgradeAcceptor.cs
- DataGridRowDetailsEventArgs.cs
- MetadataArtifactLoaderResource.cs
- ObjectTypeMapping.cs
- TypeTypeConverter.cs
- MultiPropertyDescriptorGridEntry.cs
- JpegBitmapDecoder.cs
- TextMetrics.cs
- DocumentPageTextView.cs
- ControlUtil.cs
- SelectionEditingBehavior.cs
- LayoutEvent.cs
- SqlDataSourceQueryEditor.cs
- CompoundFileDeflateTransform.cs
- brushes.cs
- WpfKnownType.cs
- ClientUtils.cs
- CodeMemberProperty.cs
- StateMachineWorkflowInstance.cs
- SingleSelectRootGridEntry.cs
- DataGridViewRowCancelEventArgs.cs
- OptimizedTemplateContentHelper.cs
- TransformPatternIdentifiers.cs
- LabelTarget.cs
- DesigntimeLicenseContextSerializer.cs
- WindowsTab.cs
- ExpandSegment.cs
- ConfigPathUtility.cs
- DateTimeStorage.cs
- LinkDesigner.cs
- EntityProviderServices.cs
- PropertyInformationCollection.cs
- BitmapMetadataBlob.cs
- StateItem.cs
- NetworkStream.cs
- Root.cs
- BitmapEffect.cs
- XPathNodePointer.cs
- XmlSchemas.cs
- HtmlEncodedRawTextWriter.cs
- SystemIPAddressInformation.cs
- SafeCoTaskMem.cs
- oledbmetadatacolumnnames.cs
- SafeHandle.cs
- WebBrowserPermission.cs
- KeyValueConfigurationElement.cs
- ItemList.cs