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
- MulticastOption.cs
- SelfIssuedTokenFactoryCredential.cs
- ColorConvertedBitmapExtension.cs
- ModelVisual3D.cs
- XmlLinkedNode.cs
- LocalizationComments.cs
- CancellationTokenSource.cs
- OledbConnectionStringbuilder.cs
- Imaging.cs
- FontSourceCollection.cs
- BoundField.cs
- DurableInstanceProvider.cs
- ThreadPool.cs
- CodeDelegateInvokeExpression.cs
- XmlCharCheckingWriter.cs
- BackoffTimeoutHelper.cs
- SignatureDescription.cs
- Quad.cs
- _RequestCacheProtocol.cs
- SafeCertificateContext.cs
- ImageListUtils.cs
- BinaryMethodMessage.cs
- Deflater.cs
- COM2IProvidePropertyBuilderHandler.cs
- ExecutionEngineException.cs
- OTFRasterizer.cs
- WithParamAction.cs
- SerializationInfo.cs
- MaskedTextBox.cs
- UpnEndpointIdentity.cs
- DataError.cs
- BookmarkWorkItem.cs
- LocalFileSettingsProvider.cs
- MbpInfo.cs
- GuidConverter.cs
- PointHitTestResult.cs
- WpfWebRequestHelper.cs
- MimeTypeMapper.cs
- XsltLibrary.cs
- Stopwatch.cs
- AsyncStreamReader.cs
- SqlFacetAttribute.cs
- NamedElement.cs
- XmlSchemaElement.cs
- ExpressionEvaluator.cs
- GrammarBuilderWildcard.cs
- ListBindingConverter.cs
- StructuralCache.cs
- StackOverflowException.cs
- WebHeaderCollection.cs
- ModelItem.cs
- SoapHeaders.cs
- DataSourceControl.cs
- BooleanConverter.cs
- Size3D.cs
- Clock.cs
- DefaultSection.cs
- ListSortDescriptionCollection.cs
- EntityDataSourceWizardForm.cs
- ReflectionUtil.cs
- COM2ComponentEditor.cs
- BrushMappingModeValidation.cs
- ToolStripManager.cs
- VSWCFServiceContractGenerator.cs
- XPathBinder.cs
- AffineTransform3D.cs
- GACMembershipCondition.cs
- AsymmetricKeyExchangeDeformatter.cs
- XmlHierarchyData.cs
- HttpAsyncResult.cs
- SelectedDatesCollection.cs
- LogicalTreeHelper.cs
- PackageRelationship.cs
- FormParameter.cs
- DefaultPrintController.cs
- ProfileSection.cs
- MetadataUtil.cs
- ToolboxItem.cs
- DockPatternIdentifiers.cs
- XmlRootAttribute.cs
- SafeCertificateStore.cs
- EmptyQuery.cs
- NativeWindow.cs
- LogLogRecordHeader.cs
- TransformerInfo.cs
- DbConnectionFactory.cs
- CustomSignedXml.cs
- GcSettings.cs
- SystemIcons.cs
- validation.cs
- CodeMethodMap.cs
- AssemblyUtil.cs
- FileDialogPermission.cs
- SymmetricCryptoHandle.cs
- ExpandCollapsePattern.cs
- MessagePropertyVariants.cs
- PropertyManager.cs
- CompModHelpers.cs
- SystemColorTracker.cs
- ItemCheckEvent.cs