Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SslStream.cs
- ApplicationSecurityManager.cs
- TemplateControlBuildProvider.cs
- CodeTypeDeclaration.cs
- SecurityTokenAuthenticator.cs
- EventLogEntryCollection.cs
- CssClassPropertyAttribute.cs
- SerializationSectionGroup.cs
- RenderOptions.cs
- LineBreakRecord.cs
- IteratorFilter.cs
- Schema.cs
- XmlQualifiedNameTest.cs
- FixedElement.cs
- Stack.cs
- ADMembershipUser.cs
- ProviderConnectionPointCollection.cs
- ClientSettingsSection.cs
- DocumentXPathNavigator.cs
- ConcatQueryOperator.cs
- XmlSchemaSimpleContentRestriction.cs
- WorkItem.cs
- SmtpTransport.cs
- SingleObjectCollection.cs
- IteratorAsyncResult.cs
- StrokeNode.cs
- PauseStoryboard.cs
- HttpCapabilitiesEvaluator.cs
- Collection.cs
- IconBitmapDecoder.cs
- ResourceReferenceExpression.cs
- ContainerVisual.cs
- ViewStateException.cs
- ClassHandlersStore.cs
- LocatorPart.cs
- AccessorTable.cs
- XmlKeywords.cs
- TypeSystem.cs
- DataMisalignedException.cs
- ArrangedElementCollection.cs
- TdsParserSessionPool.cs
- NegatedCellConstant.cs
- XPathParser.cs
- GenericEnumerator.cs
- FilterElement.cs
- FormViewDeleteEventArgs.cs
- TemplateModeChangedEventArgs.cs
- DrawingServices.cs
- DataView.cs
- UdpSocket.cs
- HandlerBase.cs
- DateTimeOffset.cs
- TypeBuilderInstantiation.cs
- BamlCollectionHolder.cs
- XslAst.cs
- UrlPath.cs
- ExpandSegmentCollection.cs
- RowParagraph.cs
- Filter.cs
- SerializationInfoEnumerator.cs
- HotSpotCollection.cs
- UrlUtility.cs
- CategoryNameCollection.cs
- CalendarAutomationPeer.cs
- XmlNodeList.cs
- ElementHostPropertyMap.cs
- ConsoleKeyInfo.cs
- ControlValuePropertyAttribute.cs
- InfoCardCryptoHelper.cs
- Rect.cs
- WorkflowViewService.cs
- StandardOleMarshalObject.cs
- AnnotationStore.cs
- GetImportedCardRequest.cs
- SystemKeyConverter.cs
- EventPrivateKey.cs
- ScriptModule.cs
- DataControlFieldCollection.cs
- RoleService.cs
- RuntimeResourceSet.cs
- AppDomainAttributes.cs
- CompositeKey.cs
- LabelLiteral.cs
- InvokerUtil.cs
- MembershipUser.cs
- SoapInteropTypes.cs
- EncodingTable.cs
- NestedContainer.cs
- ProxyFragment.cs
- SqlGatherProducedAliases.cs
- StylusPointPropertyUnit.cs
- TreeBuilder.cs
- SqlProcedureAttribute.cs
- SafeSecurityHandles.cs
- SafeFileMappingHandle.cs
- JournalEntryStack.cs
- CalendarTable.cs
- XmlEventCache.cs
- TreeView.cs
- ArrayWithOffset.cs