Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ColumnBinding.cs
- HtmlInputButton.cs
- PathStreamGeometryContext.cs
- PolyLineSegment.cs
- DetailsViewPageEventArgs.cs
- ClientCredentialsElement.cs
- ServiceChannel.cs
- HashMembershipCondition.cs
- DetailsViewUpdateEventArgs.cs
- X509ChainElement.cs
- TypeSource.cs
- TypeForwardedToAttribute.cs
- PnrpPermission.cs
- ContentElement.cs
- HwndSourceKeyboardInputSite.cs
- WmlPhoneCallAdapter.cs
- VisualStyleTypesAndProperties.cs
- FamilyMap.cs
- ProvidePropertyAttribute.cs
- ObjectRef.cs
- DataDocumentXPathNavigator.cs
- ListViewCancelEventArgs.cs
- ScriptIgnoreAttribute.cs
- AccessorTable.cs
- SafeRightsManagementPubHandle.cs
- MethodToken.cs
- BaseResourcesBuildProvider.cs
- RequestQueue.cs
- SourceFileBuildProvider.cs
- RNGCryptoServiceProvider.cs
- ContainerFilterService.cs
- SectionRecord.cs
- ArglessEventHandlerProxy.cs
- ScrollBar.cs
- BitmapEffectState.cs
- TargetException.cs
- XPathDocumentNavigator.cs
- NetSectionGroup.cs
- NotifyParentPropertyAttribute.cs
- UniqueIdentifierService.cs
- DataRowCollection.cs
- BooleanFacetDescriptionElement.cs
- DataListAutoFormat.cs
- oledbconnectionstring.cs
- XPathSelectionIterator.cs
- ProvidersHelper.cs
- SqlDataSourceCache.cs
- DataServiceQueryContinuation.cs
- ObjectMaterializedEventArgs.cs
- AssemblyHash.cs
- DataView.cs
- EventArgs.cs
- ReachDocumentReferenceSerializerAsync.cs
- DBNull.cs
- CellCreator.cs
- PeerApplication.cs
- HostedTransportConfigurationManager.cs
- TableItemStyle.cs
- MessageEncoder.cs
- AliasGenerator.cs
- FormatterServices.cs
- Region.cs
- BuildManager.cs
- InstanceNameConverter.cs
- Error.cs
- RegexStringValidator.cs
- SerializationObjectManager.cs
- TerminatorSinks.cs
- EntityCollection.cs
- ObjectAnimationUsingKeyFrames.cs
- DocumentApplication.cs
- IndexedString.cs
- BinHexEncoding.cs
- ReadOnlyTernaryTree.cs
- DBAsyncResult.cs
- ForEachAction.cs
- DefaultCommandConverter.cs
- ImageAnimator.cs
- PointAnimation.cs
- RtfToXamlReader.cs
- XamlParser.cs
- XmlWriterDelegator.cs
- DataGridTable.cs
- LocalizationComments.cs
- ClientBuildManager.cs
- ReliableReplySessionChannel.cs
- If.cs
- DocumentXmlWriter.cs
- ObjectDataSourceEventArgs.cs
- DataSourceExpressionCollection.cs
- SessionState.cs
- DifferencingCollection.cs
- ObjectStateManagerMetadata.cs
- SequentialOutput.cs
- UnsafeNativeMethods.cs
- TripleDESCryptoServiceProvider.cs
- BitmapPalette.cs
- TileBrush.cs
- InvalidPrinterException.cs
- SessionPageStateSection.cs