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
- WebExceptionStatus.cs
- EditingCoordinator.cs
- UserControlCodeDomTreeGenerator.cs
- SHA1Managed.cs
- BitConverter.cs
- TypeTypeConverter.cs
- HMACMD5.cs
- DrawingBrush.cs
- ImageButton.cs
- CheckBoxField.cs
- RequestQueue.cs
- TrackBar.cs
- PagesSection.cs
- OracleMonthSpan.cs
- XmlAnyElementAttributes.cs
- BindingOperations.cs
- WorkflowInlining.cs
- Switch.cs
- AsyncOperationManager.cs
- IteratorFilter.cs
- TransportBindingElement.cs
- TableMethodGenerator.cs
- SqlDependencyListener.cs
- Material.cs
- XmlElementCollection.cs
- PointIndependentAnimationStorage.cs
- PropertyCollection.cs
- EnumMember.cs
- IteratorFilter.cs
- MediaCommands.cs
- ProxyElement.cs
- BuildResultCache.cs
- BrowserInteropHelper.cs
- MimeMultiPart.cs
- GcHandle.cs
- FamilyMap.cs
- ProofTokenCryptoHandle.cs
- Inline.cs
- DefaultProxySection.cs
- sortedlist.cs
- TextServicesContext.cs
- AsyncPostBackErrorEventArgs.cs
- InnerItemCollectionView.cs
- EncoderBestFitFallback.cs
- OdbcParameterCollection.cs
- FixedSOMImage.cs
- DataGridViewCheckBoxColumn.cs
- AuthorizationSection.cs
- TextLine.cs
- unsafeIndexingFilterStream.cs
- Activator.cs
- InputScopeNameConverter.cs
- Point4D.cs
- ResourcePermissionBaseEntry.cs
- PrincipalPermission.cs
- IHttpResponseInternal.cs
- DbProviderConfigurationHandler.cs
- AbstractSvcMapFileLoader.cs
- DataServiceQueryException.cs
- VirtualPathData.cs
- IChannel.cs
- PlainXmlSerializer.cs
- SpellerStatusTable.cs
- ReadWriteSpinLock.cs
- OdbcConnectionString.cs
- PreDigestedSignedInfo.cs
- UTF32Encoding.cs
- Classification.cs
- Baml2006KeyRecord.cs
- ReferencedType.cs
- Operators.cs
- DocumentOrderQuery.cs
- GradientBrush.cs
- MainMenu.cs
- EncodingDataItem.cs
- InternalMappingException.cs
- AxWrapperGen.cs
- Item.cs
- FormParameter.cs
- WindowsRichEdit.cs
- BoundsDrawingContextWalker.cs
- AtlasWeb.Designer.cs
- WindowHelperService.cs
- SpinLock.cs
- SmiRequestExecutor.cs
- IdentityManager.cs
- XPathNodeInfoAtom.cs
- DecodeHelper.cs
- Rfc2898DeriveBytes.cs
- SiteMapDataSource.cs
- CodeIndexerExpression.cs
- InputProviderSite.cs
- MatrixCamera.cs
- OracleEncoding.cs
- TraceHandlerErrorFormatter.cs
- CharKeyFrameCollection.cs
- AdornerHitTestResult.cs
- PeerNodeTraceRecord.cs
- WorkflowPersistenceService.cs
- ApplicationFileParser.cs