Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- FontConverter.cs
- TraceRecord.cs
- SQLGuidStorage.cs
- CodeParameterDeclarationExpression.cs
- ArglessEventHandlerProxy.cs
- MenuCommands.cs
- RelationshipDetailsRow.cs
- ResponseStream.cs
- FileSystemEventArgs.cs
- GeometryCombineModeValidation.cs
- PixelFormatConverter.cs
- WebPartDisplayModeCollection.cs
- PreProcessor.cs
- SelectionListDesigner.cs
- SessionPageStatePersister.cs
- AuthorizationPolicyTypeElement.cs
- PairComparer.cs
- ConstraintStruct.cs
- DataSourceCache.cs
- ColorMap.cs
- DoWhileDesigner.xaml.cs
- ISAPIRuntime.cs
- TableHeaderCell.cs
- ArrayTypeMismatchException.cs
- FormatException.cs
- ContainerUIElement3D.cs
- Double.cs
- StoragePropertyMapping.cs
- XmlCDATASection.cs
- XmlMapping.cs
- ColorKeyFrameCollection.cs
- TextEditorMouse.cs
- SystemFonts.cs
- DocumentSequence.cs
- ExceptionUtil.cs
- GroupBox.cs
- AspCompat.cs
- ExceptionValidationRule.cs
- XmlUTF8TextReader.cs
- ToolBarPanel.cs
- StylusDevice.cs
- RemotingServices.cs
- AssemblyAttributesGoHere.cs
- ScriptingJsonSerializationSection.cs
- NamespaceInfo.cs
- SafeNativeMethods.cs
- Knowncolors.cs
- WebBrowser.cs
- HierarchicalDataBoundControl.cs
- ButtonBase.cs
- DefaultWorkflowTransactionService.cs
- EventWaitHandleSecurity.cs
- DataBoundControlActionList.cs
- DataGridState.cs
- WasHostedComPlusFactory.cs
- OleDbRowUpdatedEvent.cs
- DataGridViewTopRowAccessibleObject.cs
- ServiceElementCollection.cs
- ControlTemplate.cs
- MediaTimeline.cs
- SafeFreeMibTable.cs
- QilTernary.cs
- SqlException.cs
- ProfileEventArgs.cs
- Form.cs
- SemanticTag.cs
- SqlColumnizer.cs
- HttpModulesSection.cs
- activationcontext.cs
- MessagePropertyDescription.cs
- documentsequencetextcontainer.cs
- CachedBitmap.cs
- DiscoveryClientElement.cs
- ContentIterators.cs
- DataGridItemEventArgs.cs
- ReadOnlyDataSourceView.cs
- RepeaterItem.cs
- HttpHandlerAction.cs
- CodeChecksumPragma.cs
- DocumentOrderComparer.cs
- RepeatButtonAutomationPeer.cs
- ScriptingWebServicesSectionGroup.cs
- CloudCollection.cs
- RedirectionProxy.cs
- ResourceDictionaryCollection.cs
- XmlSchemaComplexContentRestriction.cs
- ColorConverter.cs
- DataBinding.cs
- Subtree.cs
- ModifierKeysValueSerializer.cs
- IDispatchConstantAttribute.cs
- XmlCharacterData.cs
- BlurBitmapEffect.cs
- StateMachineHelpers.cs
- DefaultEventAttribute.cs
- DependencyPropertyHelper.cs
- XmlSchemaIdentityConstraint.cs
- InfoCardSchemas.cs
- VectorCollectionConverter.cs
- DataGridDetailsPresenterAutomationPeer.cs