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 / 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
- PackWebRequest.cs
- UrlPropertyAttribute.cs
- ExecutionProperties.cs
- MediaTimeline.cs
- Identifier.cs
- LicenseException.cs
- TextSerializer.cs
- TreePrinter.cs
- RoleManagerModule.cs
- BitmapEncoder.cs
- Mouse.cs
- WeakReference.cs
- PreProcessor.cs
- QilBinary.cs
- RequestTimeoutManager.cs
- Number.cs
- PageThemeCodeDomTreeGenerator.cs
- CapabilitiesSection.cs
- Mappings.cs
- PolyBezierSegmentFigureLogic.cs
- SubMenuStyleCollection.cs
- ServiceAppDomainAssociationProvider.cs
- BCLDebug.cs
- SqlCachedBuffer.cs
- WaitHandleCannotBeOpenedException.cs
- FormatSettings.cs
- GridErrorDlg.cs
- Fonts.cs
- ExpressionBinding.cs
- ErrorHandlerModule.cs
- RoleService.cs
- OleServicesContext.cs
- DataQuery.cs
- Subtree.cs
- MulticastNotSupportedException.cs
- ViewgenGatekeeper.cs
- SmiGettersStream.cs
- PixelFormatConverter.cs
- ServiceOperation.cs
- WsatServiceCertificate.cs
- SecureUICommand.cs
- EpmSourceTree.cs
- BuildProviderCollection.cs
- XmlMtomReader.cs
- ParseHttpDate.cs
- HyperLinkColumn.cs
- RoleGroupCollection.cs
- HttpProfileBase.cs
- MissingFieldException.cs
- TrackBarRenderer.cs
- CodeSnippetCompileUnit.cs
- Errors.cs
- MergablePropertyAttribute.cs
- BitmapEncoder.cs
- HyperLinkColumn.cs
- SqlNamer.cs
- GcHandle.cs
- BindingMemberInfo.cs
- ActiveDocumentEvent.cs
- ValidationRule.cs
- Logging.cs
- SelectionProviderWrapper.cs
- SubqueryRules.cs
- ReflectPropertyDescriptor.cs
- ZoneButton.cs
- httpserverutility.cs
- SqlServer2KCompatibilityCheck.cs
- PopOutPanel.cs
- RectAnimationBase.cs
- SizeKeyFrameCollection.cs
- SoapProtocolReflector.cs
- ContentPosition.cs
- HybridObjectCache.cs
- AppDomainAttributes.cs
- XmlName.cs
- ColorIndependentAnimationStorage.cs
- Helper.cs
- TypeSource.cs
- OdbcUtils.cs
- CheckBoxFlatAdapter.cs
- PassportAuthenticationEventArgs.cs
- cryptoapiTransform.cs
- PasswordRecoveryAutoFormat.cs
- Int32CAMarshaler.cs
- ArgumentFixer.cs
- Color.cs
- Rotation3DAnimationBase.cs
- ReaderContextStackData.cs
- ScriptingProfileServiceSection.cs
- ServiceDescriptionContext.cs
- TcpProcessProtocolHandler.cs
- TypefaceMap.cs
- IdnElement.cs
- XmlSchemaChoice.cs
- ReflectPropertyDescriptor.cs
- WrappedReader.cs
- WindowsListViewGroupSubsetLink.cs
- SizeFConverter.cs
- OutgoingWebRequestContext.cs
- GridViewCommandEventArgs.cs