Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / QueryCursorEventArgs.cs / 1305600 / 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
- ListControlBuilder.cs
- CatalogPartCollection.cs
- MenuCommandService.cs
- AppDomainShutdownMonitor.cs
- BindingCollection.cs
- ConnectivityStatus.cs
- Rectangle.cs
- ConfigXmlAttribute.cs
- ParameterRetriever.cs
- DataFormat.cs
- XmlEntity.cs
- _DomainName.cs
- EventLogInternal.cs
- Stacktrace.cs
- ColorPalette.cs
- ListViewSelectEventArgs.cs
- DrawListViewColumnHeaderEventArgs.cs
- XmlEntity.cs
- SmtpDateTime.cs
- DataGridViewComboBoxEditingControl.cs
- HtmlInputButton.cs
- BuildProvider.cs
- XmlArrayItemAttributes.cs
- OleStrCAMarshaler.cs
- BrowserCapabilitiesFactoryBase.cs
- ClusterRegistryConfigurationProvider.cs
- LongValidatorAttribute.cs
- UxThemeWrapper.cs
- TemplateLookupAction.cs
- WinFormsSpinner.cs
- ListViewUpdatedEventArgs.cs
- XmlSyndicationContent.cs
- SqlGenerator.cs
- TransformerTypeCollection.cs
- Part.cs
- CodeVariableReferenceExpression.cs
- FrameworkContentElement.cs
- ListDataBindEventArgs.cs
- TypeUnloadedException.cs
- JoinElimination.cs
- TextFormatter.cs
- SqlNodeAnnotations.cs
- IconConverter.cs
- LoginNameDesigner.cs
- TimeSpanConverter.cs
- X509CertificateRecipientClientCredential.cs
- StateManagedCollection.cs
- Splitter.cs
- FixedPageAutomationPeer.cs
- FactoryGenerator.cs
- RegexCaptureCollection.cs
- InstanceDataCollectionCollection.cs
- IOException.cs
- HtmlInputImage.cs
- HierarchicalDataBoundControlAdapter.cs
- Visual3DCollection.cs
- AsyncPostBackTrigger.cs
- BreakRecordTable.cs
- cryptoapiTransform.cs
- PropertyChangingEventArgs.cs
- Metadata.cs
- WebEvents.cs
- ChangeNode.cs
- TemplateColumn.cs
- ConvertersCollection.cs
- SchemaMapping.cs
- BamlLocalizableResource.cs
- ConnectionPoolManager.cs
- InputScopeNameConverter.cs
- RemotingConfigParser.cs
- HttpRequestBase.cs
- ImageList.cs
- ArcSegment.cs
- Baml6Assembly.cs
- FormViewInsertEventArgs.cs
- DockPattern.cs
- SpellerError.cs
- HierarchicalDataTemplate.cs
- LinqToSqlWrapper.cs
- FilterException.cs
- TextParagraphProperties.cs
- Container.cs
- InternalControlCollection.cs
- ApplicationHost.cs
- ApplyTemplatesAction.cs
- TextOptionsInternal.cs
- PolicyLevel.cs
- DBDataPermissionAttribute.cs
- DescendentsWalkerBase.cs
- EventTrigger.cs
- InvalidOperationException.cs
- DialogResultConverter.cs
- MarkupCompilePass1.cs
- HtmlInputSubmit.cs
- WorkflowShape.cs
- BinHexEncoder.cs
- TraceHandlerErrorFormatter.cs
- TextEvent.cs
- CodeEntryPointMethod.cs
- Context.cs