Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Input / NotifyInputEventArgs.cs / 1 / NotifyInputEventArgs.cs
using System;
using System.Collections;
using System.Security.Permissions;
using System.Security ;
using MS.Internal;
using MS.Internal.PresentationCore; // SecurityHelper
namespace System.Windows.Input
{
///
/// Provides information about an input event being processed by the
/// input manager.
///
///
/// An instance of this class, or a derived class, is passed to the
/// handlers of the following events:
///
///
///
public class NotifyInputEventArgs : EventArgs
{
// Only we can make these. Note that we cache and reuse instances.
internal NotifyInputEventArgs() {}
///
/// Critical - InputManager passed in is critical data.
///
[SecurityCritical]
internal virtual void Reset(StagingAreaInputItem input, InputManager inputManager)
{
_input = input;
_inputManager = inputManager;
}
///
/// The staging area input item being processed by the input
/// manager.
///
public StagingAreaInputItem StagingItem {get {return _input;}}
///
/// The input manager processing the input event.
///
///
/// Callers must have UIPermission(PermissionState.Unrestricted) to call this API.
///
///
/// Critical - input manager is critical
/// PublicOK - there's a demand.
///
public InputManager InputManager
{
[SecurityCritical ]
get
{
SecurityHelper.DemandUnrestrictedUIPermission();
return _inputManager;
}
}
///
/// The input manager processing the input event.
/// *** FOR INTERNAL USE ONLY ****
///
///
/// Critical - input manager is critical
///
internal InputManager UnsecureInputManager
{
[SecurityCritical]
get
{
return _inputManager;
}
}
private StagingAreaInputItem _input;
///
/// Critical data as InputManager ctor is critical.
///
[SecurityCritical]
private InputManager _inputManager;
}
///
/// Delegate type for handles of events that use
/// .
///
public delegate void NotifyInputEventHandler(object sender, NotifyInputEventArgs e);
}
// 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
- VirtualizingStackPanel.cs
- CriticalFinalizerObject.cs
- KeyNotFoundException.cs
- OverflowException.cs
- CalendarItem.cs
- XmlNodeList.cs
- WpfWebRequestHelper.cs
- EdmItemCollection.OcAssemblyCache.cs
- ListDependantCardsRequest.cs
- AuthStoreRoleProvider.cs
- FrameSecurityDescriptor.cs
- XmlnsPrefixAttribute.cs
- _SingleItemRequestCache.cs
- ResourcesChangeInfo.cs
- SetMemberBinder.cs
- RuntimeResourceSet.cs
- PlainXmlWriter.cs
- HttpCapabilitiesEvaluator.cs
- DateTimeUtil.cs
- SafeWaitHandle.cs
- RuntimeIdentifierPropertyAttribute.cs
- SmiContextFactory.cs
- SafeProcessHandle.cs
- SqlBuilder.cs
- RtfNavigator.cs
- EventPropertyMap.cs
- TemplatedMailWebEventProvider.cs
- Transform.cs
- XamlFxTrace.cs
- Line.cs
- DataBindingValueUIHandler.cs
- ObjectViewListener.cs
- UriExt.cs
- WebServiceFault.cs
- ListViewItemCollectionEditor.cs
- CounterCreationDataCollection.cs
- Opcode.cs
- AppDomain.cs
- WorkflowDesignerColors.cs
- LineBreak.cs
- TableAutomationPeer.cs
- ByteAnimation.cs
- FreezableDefaultValueFactory.cs
- Publisher.cs
- FtpCachePolicyElement.cs
- SynchronizedInputProviderWrapper.cs
- XmlC14NWriter.cs
- MethodBody.cs
- FileSystemEventArgs.cs
- Button.cs
- ServiceDurableInstanceContextProvider.cs
- ToolBarPanel.cs
- SqlClientWrapperSmiStreamChars.cs
- PageParser.cs
- CssStyleCollection.cs
- WebPartEditVerb.cs
- CommonGetThemePartSize.cs
- AspNetRouteServiceHttpHandler.cs
- DataGridViewRowEventArgs.cs
- FaultException.cs
- CancellationTokenRegistration.cs
- ISessionStateStore.cs
- DynamicILGenerator.cs
- SafeRightsManagementSessionHandle.cs
- ProfilePropertyNameValidator.cs
- BaseInfoTable.cs
- TableLayoutSettings.cs
- TextViewSelectionProcessor.cs
- ListViewItemEventArgs.cs
- TextProperties.cs
- CommandHelpers.cs
- Metadata.cs
- MobileListItem.cs
- OutputCacheSection.cs
- HtmlSelect.cs
- CacheMemory.cs
- FormatterServices.cs
- _WebProxyDataBuilder.cs
- StaticResourceExtension.cs
- _Rfc2616CacheValidators.cs
- FontUnitConverter.cs
- DbRetry.cs
- DataBindingList.cs
- HttpRequestCacheValidator.cs
- WebPartDisplayModeEventArgs.cs
- ContractCodeDomInfo.cs
- StringHandle.cs
- OverflowException.cs
- DataGridViewDataErrorEventArgs.cs
- SiteMapNode.cs
- PropertyState.cs
- ListViewItemSelectionChangedEvent.cs
- DefaultEventAttribute.cs
- ExclusiveTcpTransportManager.cs
- Query.cs
- mediaeventargs.cs
- ObjectDisposedException.cs
- PropertyToken.cs
- CurrencyWrapper.cs
- DiscoveryDocumentLinksPattern.cs