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
- DataGridViewRowPostPaintEventArgs.cs
- CodeVariableReferenceExpression.cs
- CalendarDesigner.cs
- StylusPointPropertyUnit.cs
- Atom10FormatterFactory.cs
- HebrewNumber.cs
- PerformanceCountersElement.cs
- PrintSystemException.cs
- DynamicDocumentPaginator.cs
- MultiSelectRootGridEntry.cs
- DataGridItem.cs
- CardSpacePolicyElement.cs
- DefaultWorkflowSchedulerService.cs
- WindowsFont.cs
- SplashScreenNativeMethods.cs
- Soap.cs
- TrackingAnnotationCollection.cs
- SourceFilter.cs
- RouteParameter.cs
- SynchronizationLockException.cs
- DbParameterCollectionHelper.cs
- ModulesEntry.cs
- AnnotationService.cs
- QuaternionRotation3D.cs
- SharedConnectionWorkflowTransactionService.cs
- Themes.cs
- TextFormatterHost.cs
- DbParameterCollection.cs
- SetIndexBinder.cs
- CharKeyFrameCollection.cs
- PatternMatcher.cs
- TextDecorationCollectionConverter.cs
- SecurityVersion.cs
- securitymgrsite.cs
- SignatureGenerator.cs
- FormViewDeleteEventArgs.cs
- XmlEncodedRawTextWriter.cs
- PersonalizationStateQuery.cs
- ConvertersCollection.cs
- QilInvoke.cs
- CapabilitiesSection.cs
- RequestResizeEvent.cs
- SizeAnimationBase.cs
- VoiceInfo.cs
- _SSPIWrapper.cs
- RepeatBehavior.cs
- LongCountAggregationOperator.cs
- CodeDomConfigurationHandler.cs
- MetadataExporter.cs
- BamlRecordHelper.cs
- WebResourceAttribute.cs
- BitmapEffect.cs
- FontFamilyIdentifier.cs
- SubtreeProcessor.cs
- Section.cs
- CommandCollectionEditor.cs
- SQLInt32Storage.cs
- CaseExpr.cs
- MimeParameterWriter.cs
- MailBnfHelper.cs
- HMACRIPEMD160.cs
- DataBindEngine.cs
- mda.cs
- RequiredFieldValidator.cs
- TextFormatter.cs
- FlowLayoutPanel.cs
- ReadContentAsBinaryHelper.cs
- CryptoKeySecurity.cs
- Int32CollectionValueSerializer.cs
- ExternalCalls.cs
- ExpressionBindingCollection.cs
- DiscoveryVersionConverter.cs
- BinaryFormatterWriter.cs
- SchemaNotation.cs
- ComponentCodeDomSerializer.cs
- SoapExtensionReflector.cs
- SqlConnection.cs
- DeviceContexts.cs
- ProgressBarAutomationPeer.cs
- FrameDimension.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- SqlDataSourceQueryEditorForm.cs
- RestHandler.cs
- Nodes.cs
- HttpModuleCollection.cs
- XmlSchemaSimpleTypeList.cs
- DataSet.cs
- ItemsPresenter.cs
- Crc32Helper.cs
- SelectionItemProviderWrapper.cs
- ToolStripDropDown.cs
- XmlReflectionImporter.cs
- Control.cs
- CompatibleComparer.cs
- SamlEvidence.cs
- TableLayoutCellPaintEventArgs.cs
- QilStrConcatenator.cs
- HitTestWithGeometryDrawingContextWalker.cs
- DocumentCollection.cs
- TemplatedWizardStep.cs