Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CatalogPart.cs
- DataTable.cs
- SelectionBorderGlyph.cs
- SqlNotificationEventArgs.cs
- OdbcParameterCollection.cs
- CommandEventArgs.cs
- RegexCaptureCollection.cs
- ControlTemplate.cs
- HttpAsyncResult.cs
- IPHostEntry.cs
- MenuItemCollectionEditor.cs
- InkCanvasFeedbackAdorner.cs
- FontFamilyIdentifier.cs
- ConfigXmlSignificantWhitespace.cs
- ConsumerConnectionPointCollection.cs
- RenderDataDrawingContext.cs
- SharedRuntimeState.cs
- PropertyRecord.cs
- SplitterPanel.cs
- DbProviderFactoriesConfigurationHandler.cs
- InboundActivityHelper.cs
- ConfigurationSectionCollection.cs
- arclist.cs
- InputMethodStateChangeEventArgs.cs
- OwnerDrawPropertyBag.cs
- _SslSessionsCache.cs
- CustomLineCap.cs
- COM2ColorConverter.cs
- XmlNodeWriter.cs
- ListQueryResults.cs
- TraceHandlerErrorFormatter.cs
- Utils.cs
- XmlIterators.cs
- Literal.cs
- figurelength.cs
- TextBox.cs
- DBNull.cs
- DataPagerField.cs
- UserNamePasswordValidator.cs
- RoleServiceManager.cs
- IdentifierService.cs
- BitmapDecoder.cs
- OutputCacheEntry.cs
- UserNameSecurityTokenProvider.cs
- ResourceKey.cs
- ObjectItemCachedAssemblyLoader.cs
- UpdateManifestForBrowserApplication.cs
- UserControlBuildProvider.cs
- SafeTimerHandle.cs
- DataFormats.cs
- TableItemProviderWrapper.cs
- X509Extension.cs
- GregorianCalendar.cs
- WebServiceClientProxyGenerator.cs
- NotFiniteNumberException.cs
- DropSourceBehavior.cs
- ImageDrawing.cs
- SvcMapFileSerializer.cs
- CompilationSection.cs
- SessionPageStatePersister.cs
- Console.cs
- SortDescriptionCollection.cs
- OutputCacheProfileCollection.cs
- IndexingContentUnit.cs
- DataPagerField.cs
- Int16AnimationBase.cs
- WindowsAltTab.cs
- RelationshipConverter.cs
- GraphicsContainer.cs
- XmlMemberMapping.cs
- VectorKeyFrameCollection.cs
- MimeTypePropertyAttribute.cs
- DateTimeOffsetConverter.cs
- MeshGeometry3D.cs
- GenericEnumConverter.cs
- DataPagerFieldItem.cs
- ComponentResourceManager.cs
- WindowsTitleBar.cs
- MultipartIdentifier.cs
- SchemaManager.cs
- AdRotator.cs
- RegisteredDisposeScript.cs
- CompiledIdentityConstraint.cs
- Interlocked.cs
- printdlgexmarshaler.cs
- ExpressionPrefixAttribute.cs
- DockingAttribute.cs
- Graph.cs
- StyleCollection.cs
- GotoExpression.cs
- DesigntimeLicenseContext.cs
- AssemblyAttributes.cs
- PowerModeChangedEventArgs.cs
- BitmapSource.cs
- PinnedBufferMemoryStream.cs
- mansign.cs
- EntityDataSourceMemberPath.cs
- MetaType.cs
- CursorConverter.cs
- RegexBoyerMoore.cs