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
- PassportPrincipal.cs
- ListBindingHelper.cs
- XamlToRtfWriter.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ToolStripControlHost.cs
- CompatibleIComparer.cs
- ThousandthOfEmRealPoints.cs
- StylusPointPropertyId.cs
- SmtpTransport.cs
- DbDataAdapter.cs
- EmissiveMaterial.cs
- Size.cs
- UserPersonalizationStateInfo.cs
- WebPartsPersonalization.cs
- URI.cs
- WebUtil.cs
- SystemNetHelpers.cs
- Events.cs
- DbProviderFactoriesConfigurationHandler.cs
- TimeoutValidationAttribute.cs
- DataObjectPastingEventArgs.cs
- DetailsViewInsertEventArgs.cs
- SmiContextFactory.cs
- KoreanLunisolarCalendar.cs
- RangeBaseAutomationPeer.cs
- FindCriteriaApril2005.cs
- KnownIds.cs
- ToolStripRenderer.cs
- XmlEnumAttribute.cs
- TabControlCancelEvent.cs
- ThreadStateException.cs
- XmlDataSourceDesigner.cs
- FloaterBaseParaClient.cs
- DataRelationCollection.cs
- PropertyIDSet.cs
- Rect3D.cs
- BinaryConverter.cs
- PropertyNames.cs
- TrackingMemoryStreamFactory.cs
- UIElementParagraph.cs
- LineMetrics.cs
- SQLInt32.cs
- AccessDataSource.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- XPathNavigatorReader.cs
- SspiWrapper.cs
- SafeHandles.cs
- WmlMobileTextWriter.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- DataGridViewRowPostPaintEventArgs.cs
- DataSourceExpression.cs
- OdbcFactory.cs
- BindingContext.cs
- IssuanceLicense.cs
- DiscriminatorMap.cs
- ObjectDataSourceMethodEventArgs.cs
- SignatureTargetIdManager.cs
- XmlSchemaImporter.cs
- AssertSection.cs
- X509SecurityTokenProvider.cs
- FixedDSBuilder.cs
- SerializationSectionGroup.cs
- RelationalExpressions.cs
- EditingCommands.cs
- IApplicationTrustManager.cs
- UTF32Encoding.cs
- EncodingDataItem.cs
- CompoundFileDeflateTransform.cs
- ModuleBuilder.cs
- DelegateSerializationHolder.cs
- GZipStream.cs
- CompositeDataBoundControl.cs
- ListBindingHelper.cs
- ListComponentEditorPage.cs
- StateInitialization.cs
- RandomNumberGenerator.cs
- GeneralTransformGroup.cs
- OleAutBinder.cs
- ResourceDictionary.cs
- ProfileGroupSettingsCollection.cs
- XmlTextEncoder.cs
- SendReply.cs
- SqlFileStream.cs
- DateTimeFormat.cs
- RelationshipType.cs
- ClientBuildManager.cs
- ResourceDescriptionAttribute.cs
- VisualCollection.cs
- TimeManager.cs
- TimeoutValidationAttribute.cs
- OneToOneMappingSerializer.cs
- FileUtil.cs
- WorkflowMarkupSerializationException.cs
- ArrangedElement.cs
- MulticastDelegate.cs
- ToolConsole.cs
- MenuItem.cs
- QueryExpression.cs
- LabelTarget.cs
- unsafeIndexingFilterStream.cs