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
- ApplicationTrust.cs
- ChainOfResponsibility.cs
- EndOfStreamException.cs
- PageWrapper.cs
- XmlSchemaAppInfo.cs
- EntityDataSourceContextCreatedEventArgs.cs
- TextTreeExtractElementUndoUnit.cs
- AvTraceDetails.cs
- RtfNavigator.cs
- XMLDiffLoader.cs
- ConcurrentQueue.cs
- StopStoryboard.cs
- LongTypeConverter.cs
- ConnectionManager.cs
- RuleSettingsCollection.cs
- Attributes.cs
- LookupBindingPropertiesAttribute.cs
- FaultDescription.cs
- _NegoStream.cs
- CompressedStack.cs
- WebServiceErrorEvent.cs
- DependencyObjectPropertyDescriptor.cs
- PackageDigitalSignature.cs
- OdbcTransaction.cs
- XmlRootAttribute.cs
- AppSettingsExpressionBuilder.cs
- activationcontext.cs
- ParserExtension.cs
- ProgressBarAutomationPeer.cs
- OnOperation.cs
- SafePEFileHandle.cs
- FunctionParameter.cs
- RadioButtonStandardAdapter.cs
- HashStream.cs
- XamlStream.cs
- XmlWrappingWriter.cs
- OnOperation.cs
- ToolStripDropDownMenu.cs
- ComponentGlyph.cs
- GPStream.cs
- JsonCollectionDataContract.cs
- UInt64.cs
- EntityConnection.cs
- RouteTable.cs
- HandlerBase.cs
- ClassData.cs
- _AutoWebProxyScriptEngine.cs
- SchemaTableOptionalColumn.cs
- FixedSOMSemanticBox.cs
- GridViewDeleteEventArgs.cs
- ListViewItemMouseHoverEvent.cs
- XPathNavigator.cs
- Zone.cs
- ToolStripRenderer.cs
- WebControl.cs
- HwndAppCommandInputProvider.cs
- ConsumerConnectionPoint.cs
- XmlEncodedRawTextWriter.cs
- GetPageCompletedEventArgs.cs
- Int16Converter.cs
- TextServicesCompartmentEventSink.cs
- ServiceActivationException.cs
- ListCollectionView.cs
- DelegateHelpers.Generated.cs
- GradientBrush.cs
- DashStyles.cs
- WebBrowserContainer.cs
- HttpProcessUtility.cs
- ValidatingReaderNodeData.cs
- SetterBase.cs
- Panel.cs
- CommandBinding.cs
- XsdCachingReader.cs
- SpecialNameAttribute.cs
- UnicodeEncoding.cs
- CodeDefaultValueExpression.cs
- Animatable.cs
- BackStopAuthenticationModule.cs
- HeaderLabel.cs
- TypeGeneratedEventArgs.cs
- ImportCatalogPart.cs
- UshortList2.cs
- HttpWriter.cs
- WorkflowViewManager.cs
- WebPartCollection.cs
- base64Transforms.cs
- ObjectFullSpanRewriter.cs
- CLSCompliantAttribute.cs
- __Error.cs
- PolyQuadraticBezierSegment.cs
- SmtpReplyReader.cs
- ClockController.cs
- CodeSnippetTypeMember.cs
- Misc.cs
- ReadOnlyDictionary.cs
- DataStreamFromComStream.cs
- SiteMapDataSource.cs
- ItemsControl.cs
- SaveFileDialog.cs
- XmlSecureResolver.cs