Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / 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. 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
- DeferrableContent.cs
- filewebrequest.cs
- DataGridAddNewRow.cs
- CustomBindingElement.cs
- PrePostDescendentsWalker.cs
- DataGridViewButtonCell.cs
- OrderedEnumerableRowCollection.cs
- SynthesizerStateChangedEventArgs.cs
- WebPartTransformerCollection.cs
- TreeNodeBindingCollection.cs
- TransactedBatchingElement.cs
- KeyTimeConverter.cs
- TextBox.cs
- EFColumnProvider.cs
- FormatConvertedBitmap.cs
- WindowsPen.cs
- UInt32Converter.cs
- JapaneseCalendar.cs
- Vector3DAnimationUsingKeyFrames.cs
- UIElement3DAutomationPeer.cs
- ConfigurationPropertyCollection.cs
- ConfigurationHandlersInstallComponent.cs
- StructuralComparisons.cs
- ClonableStack.cs
- SelectionPattern.cs
- XmlDomTextWriter.cs
- CompositeKey.cs
- ConnectionPoolManager.cs
- CryptoHelper.cs
- CharAnimationBase.cs
- TypeUsageBuilder.cs
- WebContext.cs
- WhitespaceRuleLookup.cs
- ItemCheckEvent.cs
- DesignerTransactionCloseEvent.cs
- AdCreatedEventArgs.cs
- ContentPresenter.cs
- XmlDataSource.cs
- SafeSecurityHandles.cs
- Fault.cs
- SourceFilter.cs
- SafeRegistryKey.cs
- RSAPKCS1KeyExchangeFormatter.cs
- MergeExecutor.cs
- WebBaseEventKeyComparer.cs
- ScrollBarAutomationPeer.cs
- _PooledStream.cs
- ServiceOperationListItem.cs
- LZCodec.cs
- ValidationHelpers.cs
- SafeTimerHandle.cs
- StateDesigner.Helpers.cs
- XsltSettings.cs
- OracleCommand.cs
- ItemCheckEvent.cs
- WebPartVerb.cs
- Int32Animation.cs
- DecimalStorage.cs
- AccessDataSource.cs
- HashAlgorithm.cs
- ClassHandlersStore.cs
- ITextView.cs
- GeometryDrawing.cs
- InvalidProgramException.cs
- AnnotationResourceCollection.cs
- PersonalizableTypeEntry.cs
- TreeViewTemplateSelector.cs
- IdentityModelStringsVersion1.cs
- Page.cs
- MobileTemplatedControlDesigner.cs
- UriScheme.cs
- SmiConnection.cs
- DoubleCollection.cs
- _SpnDictionary.cs
- FileCodeGroup.cs
- XmlObjectSerializerReadContext.cs
- FileClassifier.cs
- TabControlCancelEvent.cs
- ListItemCollection.cs
- Connection.cs
- Binding.cs
- X509Extension.cs
- VisualStyleRenderer.cs
- TransformerInfoCollection.cs
- Fx.cs
- FirewallWrapper.cs
- ObjectDataSourceFilteringEventArgs.cs
- PhysicalAddress.cs
- SeparatorAutomationPeer.cs
- ReadOnlyCollectionBase.cs
- DataColumnCollection.cs
- DataShape.cs
- RotateTransform.cs
- TransformerTypeCollection.cs
- Encoding.cs
- SupportingTokenSpecification.cs
- ReachVisualSerializer.cs
- CacheForPrimitiveTypes.cs
- EnumerableWrapperWeakToStrong.cs
- WindowsAuthenticationModule.cs