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
- EndpointDiscoveryMetadata11.cs
- GridViewPageEventArgs.cs
- TdsParserSessionPool.cs
- DrawingImage.cs
- SqlPersonalizationProvider.cs
- RtType.cs
- ConfigDefinitionUpdates.cs
- SoapFormatter.cs
- RemoteWebConfigurationHostStream.cs
- GridViewColumnHeader.cs
- ScrollViewer.cs
- SharedPerformanceCounter.cs
- QilIterator.cs
- ToolStripContentPanel.cs
- ConvertBinder.cs
- VScrollBar.cs
- CookielessHelper.cs
- AutomationEvent.cs
- DataTableTypeConverter.cs
- RuntimeHandles.cs
- Nullable.cs
- OleDbRowUpdatedEvent.cs
- OleDbParameterCollection.cs
- ErrorWrapper.cs
- InternalPermissions.cs
- _NestedMultipleAsyncResult.cs
- RepeaterItemEventArgs.cs
- querybuilder.cs
- ListItemParagraph.cs
- TemplateControlParser.cs
- MdiWindowListItemConverter.cs
- XmlWriterSettings.cs
- SamlAdvice.cs
- AssemblyCache.cs
- ListItemCollection.cs
- MasterPage.cs
- XmlSiteMapProvider.cs
- CacheVirtualItemsEvent.cs
- GiveFeedbackEventArgs.cs
- TextServicesPropertyRanges.cs
- CommandExpr.cs
- ProviderCommandInfoUtils.cs
- MenuItemAutomationPeer.cs
- TextDocumentView.cs
- InitializerFacet.cs
- StreamHelper.cs
- TransformerInfo.cs
- CodeGeneratorOptions.cs
- ResourceCategoryAttribute.cs
- DocumentPageViewAutomationPeer.cs
- CounterSampleCalculator.cs
- SourceFilter.cs
- RawTextInputReport.cs
- ReflectionUtil.cs
- PeerPresenceInfo.cs
- XmlReaderSettings.cs
- BuilderElements.cs
- MissingMemberException.cs
- TaskFactory.cs
- CategoryNameCollection.cs
- Helper.cs
- HTTPNotFoundHandler.cs
- DesignColumnCollection.cs
- FieldCollectionEditor.cs
- ModuleBuilderData.cs
- HttpCachePolicyElement.cs
- XamlGridLengthSerializer.cs
- SymmetricKey.cs
- StylusEditingBehavior.cs
- srgsitem.cs
- WebBrowserDocumentCompletedEventHandler.cs
- SupportingTokenProviderSpecification.cs
- SessionStateModule.cs
- SessionSwitchEventArgs.cs
- IOThreadTimer.cs
- BinHexDecoder.cs
- FixedFindEngine.cs
- LogFlushAsyncResult.cs
- CultureInfo.cs
- DefaultHttpHandler.cs
- XmlTextAttribute.cs
- ParseElement.cs
- SoapHeaderException.cs
- EncoderNLS.cs
- QuerySafeNavigator.cs
- XmlCDATASection.cs
- DbBuffer.cs
- XXXOnTypeBuilderInstantiation.cs
- SafeArrayRankMismatchException.cs
- SafeFileMappingHandle.cs
- SoapParser.cs
- ErrorStyle.cs
- StaticContext.cs
- UnsafeNativeMethods.cs
- AvTraceDetails.cs
- UrlAuthFailedErrorFormatter.cs
- XmlSchemaAnnotated.cs
- RequestBringIntoViewEventArgs.cs
- RadioButtonPopupAdapter.cs
- PrintPageEvent.cs