Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Input / QueryCursorEventArgs.cs / 1 / QueryCursorEventArgs.cs
using System; namespace System.Windows.Input { ////// Provides data for the QueryCursor event. /// public class QueryCursorEventArgs : MouseEventArgs { ////// Initializes a new instance of the QueryCursorEventArgs class. /// /// /// The logical Mouse device associated with this event. /// /// /// The time when the input occured. /// public QueryCursorEventArgs(MouseDevice mouse, int timestamp) : base(mouse, timestamp) { } ////// Initializes a new instance of the QueryCursorEventArgs class. /// /// /// The logical Mouse device associated with this event. /// /// /// The time when the input occured. /// /// /// The stylus pointer that was involved with this event. /// public QueryCursorEventArgs(MouseDevice mouse, int timestamp, StylusDevice stylusDevice) : base(mouse, timestamp, stylusDevice) { } ////// The cursor to set. /// public Cursor Cursor { get {return _cursor;} set {_cursor = ((value == null) ? Cursors.None : value);} } ////// 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) { QueryCursorEventHandler handler = (QueryCursorEventHandler) genericHandler; handler(genericTarget, this); } private Cursor _cursor; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; namespace System.Windows.Input { ////// Provides data for the QueryCursor event. /// public class QueryCursorEventArgs : MouseEventArgs { ////// Initializes a new instance of the QueryCursorEventArgs class. /// /// /// The logical Mouse device associated with this event. /// /// /// The time when the input occured. /// public QueryCursorEventArgs(MouseDevice mouse, int timestamp) : base(mouse, timestamp) { } ////// Initializes a new instance of the QueryCursorEventArgs class. /// /// /// The logical Mouse device associated with this event. /// /// /// The time when the input occured. /// /// /// The stylus pointer that was involved with this event. /// public QueryCursorEventArgs(MouseDevice mouse, int timestamp, StylusDevice stylusDevice) : base(mouse, timestamp, stylusDevice) { } ////// The cursor to set. /// public Cursor Cursor { get {return _cursor;} set {_cursor = ((value == null) ? Cursors.None : value);} } ////// 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) { QueryCursorEventHandler handler = (QueryCursorEventHandler) genericHandler; handler(genericTarget, this); } private Cursor _cursor; } } // 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
- LinkConverter.cs
- VBIdentifierName.cs
- ListViewContainer.cs
- CodeConditionStatement.cs
- CodeDOMUtility.cs
- InstalledFontCollection.cs
- ReadWriteObjectLock.cs
- CapabilitiesUse.cs
- HighlightComponent.cs
- PackageDigitalSignatureManager.cs
- DesignerOptionService.cs
- TextBox.cs
- PagePropertiesChangingEventArgs.cs
- PreProcessInputEventArgs.cs
- StateManagedCollection.cs
- _CookieModule.cs
- PropertyDescriptors.cs
- ScrollBar.cs
- ControlPropertyNameConverter.cs
- CodeDirectionExpression.cs
- AlphaSortedEnumConverter.cs
- ThreadStaticAttribute.cs
- VersionedStream.cs
- ThrowHelper.cs
- ValueChangedEventManager.cs
- PersonalizableAttribute.cs
- InputLangChangeEvent.cs
- UndoEngine.cs
- CustomAssemblyResolver.cs
- DataGridViewCellParsingEventArgs.cs
- AutomationPeer.cs
- UnauthorizedAccessException.cs
- CompoundFileStreamReference.cs
- BooleanStorage.cs
- ConsoleKeyInfo.cs
- RouteTable.cs
- MemberHolder.cs
- TextureBrush.cs
- LocatorGroup.cs
- XmlWrappingReader.cs
- MetadataItemEmitter.cs
- _BaseOverlappedAsyncResult.cs
- TextContainerChangedEventArgs.cs
- PageHandlerFactory.cs
- RepeaterItemCollection.cs
- XmlDictionaryReaderQuotasElement.cs
- XmlCustomFormatter.cs
- PreProcessor.cs
- OledbConnectionStringbuilder.cs
- DllHostedComPlusServiceHost.cs
- TextTreeExtractElementUndoUnit.cs
- ComponentEvent.cs
- IdentityNotMappedException.cs
- ComponentResourceManager.cs
- NativeMethodsCLR.cs
- AttachedPropertyDescriptor.cs
- CharConverter.cs
- RSAPKCS1SignatureDeformatter.cs
- ProxyWebPartManager.cs
- Base64Encoder.cs
- UTF32Encoding.cs
- SatelliteContractVersionAttribute.cs
- XmlSchemaGroupRef.cs
- ChangeInterceptorAttribute.cs
- TextWriter.cs
- SecUtil.cs
- DataGridLinkButton.cs
- AuthenticationConfig.cs
- Span.cs
- BitmapImage.cs
- xml.cs
- PackagePart.cs
- ListBase.cs
- NetworkAddressChange.cs
- HostingEnvironmentSection.cs
- SaveWorkflowCommand.cs
- ComboBoxHelper.cs
- _DisconnectOverlappedAsyncResult.cs
- InvalidProgramException.cs
- ZipIORawDataFileBlock.cs
- XmlILModule.cs
- HTTPNotFoundHandler.cs
- DefaultAssemblyResolver.cs
- ControlValuePropertyAttribute.cs
- BooleanToVisibilityConverter.cs
- SiteMapNodeItem.cs
- ClaimComparer.cs
- SelectionPatternIdentifiers.cs
- BookmarkScopeHandle.cs
- AccessibleObject.cs
- CharEnumerator.cs
- ListCollectionView.cs
- AxisAngleRotation3D.cs
- SystemFonts.cs
- Matrix3DConverter.cs
- TypeUsageBuilder.cs
- HandlerBase.cs
- MouseCaptureWithinProperty.cs
- XmlSerializer.cs
- SortExpressionBuilder.cs