Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ReadOnlyDictionary.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- KeyedHashAlgorithm.cs
- EventBuilder.cs
- AvTraceDetails.cs
- RelativeSource.cs
- HttpCapabilitiesSectionHandler.cs
- Expander.cs
- MenuBase.cs
- HashCodeCombiner.cs
- XmlRawWriter.cs
- EvidenceBase.cs
- StructuredTypeInfo.cs
- CornerRadius.cs
- QilList.cs
- TypeListConverter.cs
- QueryInterceptorAttribute.cs
- KnownBoxes.cs
- TextFormatterImp.cs
- Overlapped.cs
- BamlResourceDeserializer.cs
- FixedBufferAttribute.cs
- TagMapCollection.cs
- TableDetailsCollection.cs
- TraversalRequest.cs
- SafeFindHandle.cs
- DataServiceStreamResponse.cs
- TargetException.cs
- RequestCache.cs
- HttpStreams.cs
- BordersPage.cs
- configsystem.cs
- SafeRightsManagementQueryHandle.cs
- NamedPipeActivation.cs
- CqlBlock.cs
- ClosableStream.cs
- CodeEventReferenceExpression.cs
- XmlBoundElement.cs
- SynchronizedPool.cs
- EmptyControlCollection.cs
- Int16AnimationUsingKeyFrames.cs
- DtrList.cs
- View.cs
- CorrelationScope.cs
- SoapObjectInfo.cs
- CodeTypeReferenceCollection.cs
- TextElementCollectionHelper.cs
- BookmarkEventArgs.cs
- MiniParameterInfo.cs
- LowerCaseStringConverter.cs
- BoundColumn.cs
- GridToolTip.cs
- QueryAccessibilityHelpEvent.cs
- TrackingConditionCollection.cs
- AsyncPostBackTrigger.cs
- InvokeWebService.cs
- PageCodeDomTreeGenerator.cs
- Internal.cs
- ByteRangeDownloader.cs
- dbenumerator.cs
- ActivityInstanceMap.cs
- Message.cs
- XamlInt32CollectionSerializer.cs
- SoapClientMessage.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- TextSearch.cs
- CursorConverter.cs
- SoapSchemaImporter.cs
- TableParaClient.cs
- XmlParserContext.cs
- SymmetricKey.cs
- NavigationFailedEventArgs.cs
- ConfigXmlSignificantWhitespace.cs
- SqlServer2KCompatibilityCheck.cs
- MimePart.cs
- SoapExtensionImporter.cs
- Metadata.cs
- LZCodec.cs
- Rules.cs
- MeshGeometry3D.cs
- GotoExpression.cs
- CanExecuteRoutedEventArgs.cs
- XpsException.cs
- GridLength.cs
- CodeGenHelper.cs
- RowVisual.cs
- XmlHierarchicalDataSourceView.cs
- TileModeValidation.cs
- ScriptingWebServicesSectionGroup.cs
- Selection.cs
- BinaryWriter.cs
- ReliableChannelBinder.cs
- GridToolTip.cs
- StorageEndPropertyMapping.cs
- EmptyCollection.cs
- TrackingWorkflowEventArgs.cs
- NotifyInputEventArgs.cs
- ImageClickEventArgs.cs
- MultiTouchSystemGestureLogic.cs
- PipelineModuleStepContainer.cs