Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- BinaryFormatterWriter.cs
- JpegBitmapEncoder.cs
- DataException.cs
- Vector.cs
- ClientProxyGenerator.cs
- HostProtectionException.cs
- EntityViewGenerator.cs
- FixedSOMTextRun.cs
- DbConnectionStringCommon.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- DependencyPropertyValueSerializer.cs
- BaseValidator.cs
- NumericUpDownAcceleration.cs
- DirectionalLight.cs
- DataGridViewComboBoxEditingControl.cs
- RectConverter.cs
- ArgumentReference.cs
- XLinq.cs
- AudioFileOut.cs
- metadatamappinghashervisitor.cs
- OdbcStatementHandle.cs
- FixedSOMSemanticBox.cs
- ProtectedConfigurationSection.cs
- FormatterConverter.cs
- ComponentDispatcher.cs
- StrokeNodeEnumerator.cs
- WebServicesSection.cs
- ConnectionsZone.cs
- Style.cs
- BuiltInExpr.cs
- RootProfilePropertySettingsCollection.cs
- Number.cs
- NativeCompoundFileAPIs.cs
- ListBox.cs
- SignatureDescription.cs
- TypePresenter.xaml.cs
- ScrollData.cs
- NodeInfo.cs
- WebEventCodes.cs
- GeometryCollection.cs
- Native.cs
- Registry.cs
- XmlCollation.cs
- ArrangedElement.cs
- PenLineCapValidation.cs
- DSASignatureFormatter.cs
- ColorConvertedBitmapExtension.cs
- DataGridViewCheckBoxCell.cs
- SeparatorAutomationPeer.cs
- Rule.cs
- InputGestureCollection.cs
- ToolStripScrollButton.cs
- GridViewCancelEditEventArgs.cs
- WizardStepCollectionEditor.cs
- RequestCache.cs
- ControlBuilderAttribute.cs
- ContextMenuService.cs
- XhtmlTextWriter.cs
- NetCodeGroup.cs
- TextCompositionEventArgs.cs
- ImageConverter.cs
- WebPartEditorApplyVerb.cs
- Rectangle.cs
- PropertyInfoSet.cs
- StandardMenuStripVerb.cs
- SmiRequestExecutor.cs
- ProjectionPathBuilder.cs
- TrackingParameters.cs
- X509Extension.cs
- AnnouncementEndpoint.cs
- BooleanKeyFrameCollection.cs
- TypedReference.cs
- PrintingPermissionAttribute.cs
- ResXResourceWriter.cs
- MergePropertyDescriptor.cs
- SecurityKeyEntropyMode.cs
- KeyedCollection.cs
- UserUseLicenseDictionaryLoader.cs
- ListDictionaryInternal.cs
- OneToOneMappingSerializer.cs
- IpcChannelHelper.cs
- CapabilitiesUse.cs
- DataListDesigner.cs
- UrlMappingsSection.cs
- ProjectionPathBuilder.cs
- DataServiceQueryOfT.cs
- CodeThrowExceptionStatement.cs
- XhtmlBasicValidatorAdapter.cs
- SqlInternalConnectionSmi.cs
- RectangleConverter.cs
- UserThread.cs
- QuerySetOp.cs
- AllMembershipCondition.cs
- MetadataWorkspace.cs
- AuthenticationManager.cs
- nulltextcontainer.cs
- ImageField.cs
- SqlFunctionAttribute.cs
- HwndHost.cs
- ControlHelper.cs