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
- WindowsListViewItemCheckBox.cs
- TextSpan.cs
- CreateUserErrorEventArgs.cs
- ScrollChrome.cs
- ToolStripLabel.cs
- shaper.cs
- AudioException.cs
- InkCanvasInnerCanvas.cs
- ScopelessEnumAttribute.cs
- CommandBindingCollection.cs
- AttributeQuery.cs
- Regex.cs
- RoutedPropertyChangedEventArgs.cs
- TextEditorLists.cs
- XmlSchemaImport.cs
- Serializer.cs
- SafeThemeHandle.cs
- SingleAnimationUsingKeyFrames.cs
- StylusTouchDevice.cs
- ConnectionManagementSection.cs
- Compress.cs
- sqlpipe.cs
- NameNode.cs
- ScaleTransform3D.cs
- loginstatus.cs
- ISAPIWorkerRequest.cs
- TypeResolvingOptionsAttribute.cs
- BaseResourcesBuildProvider.cs
- ClusterRegistryConfigurationProvider.cs
- SqlAliaser.cs
- XmlRawWriter.cs
- PreviewPrintController.cs
- XmlAttributeProperties.cs
- CodeEventReferenceExpression.cs
- ScrollChrome.cs
- DataGridViewDataErrorEventArgs.cs
- SystemIPGlobalProperties.cs
- TablePattern.cs
- SubtreeProcessor.cs
- BamlLocalizableResource.cs
- Automation.cs
- ProviderMetadataCachedInformation.cs
- LoginName.cs
- CharStorage.cs
- ConfigurationSection.cs
- FullTextState.cs
- CodeIndexerExpression.cs
- SqlServices.cs
- HelpEvent.cs
- IDataContractSurrogate.cs
- TraceHandlerErrorFormatter.cs
- TextBoxAutomationPeer.cs
- BindingList.cs
- SubclassTypeValidatorAttribute.cs
- Cursors.cs
- ButtonBase.cs
- DataTableMappingCollection.cs
- HandledMouseEvent.cs
- Decimal.cs
- TypeResolver.cs
- SqlConnectionManager.cs
- FigureParagraph.cs
- SymLanguageType.cs
- PersonalizationState.cs
- SessionParameter.cs
- TdsParameterSetter.cs
- DetailsViewModeEventArgs.cs
- XPathException.cs
- FunctionDetailsReader.cs
- DateTimeOffsetAdapter.cs
- TextEditorDragDrop.cs
- DataContractJsonSerializerOperationFormatter.cs
- StringInfo.cs
- TextElementEnumerator.cs
- SafeMILHandle.cs
- oledbconnectionstring.cs
- XmlSchemaAnyAttribute.cs
- ProxyAttribute.cs
- LogReservationCollection.cs
- SortDescription.cs
- Char.cs
- SafeRegistryHandle.cs
- StringReader.cs
- MostlySingletonList.cs
- MsmqIntegrationBindingElement.cs
- HMACSHA1.cs
- ConsumerConnectionPointCollection.cs
- ToolBarDesigner.cs
- ErrorProvider.cs
- SelectedGridItemChangedEvent.cs
- InkCollectionBehavior.cs
- LiteralControl.cs
- PropertyDescriptor.cs
- SHA1Managed.cs
- ValueTypePropertyReference.cs
- ResourceReferenceExpressionConverter.cs
- RedirectionProxy.cs
- DocumentEventArgs.cs
- MessageBox.cs
- IDispatchConstantAttribute.cs