Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ModelTreeEnumerator.cs
- SqlLiftIndependentRowExpressions.cs
- DesignerRegion.cs
- TextSchema.cs
- OracleColumn.cs
- SqlException.cs
- SettingsBindableAttribute.cs
- WebControlAdapter.cs
- Bold.cs
- DataTableReader.cs
- CompilerResults.cs
- PreProcessInputEventArgs.cs
- contentDescriptor.cs
- HttpServerProtocol.cs
- LayoutEvent.cs
- Rect3D.cs
- TrackBarRenderer.cs
- IntegrationExceptionEventArgs.cs
- EventPrivateKey.cs
- DynamicMethod.cs
- DynamicDocumentPaginator.cs
- DeviceOverridableAttribute.cs
- TypeElement.cs
- CoordinationService.cs
- SQLResource.cs
- TableItemStyle.cs
- Table.cs
- TableDetailsRow.cs
- LoginUtil.cs
- PasswordBoxAutomationPeer.cs
- ListMarkerLine.cs
- HierarchicalDataBoundControl.cs
- FontFaceLayoutInfo.cs
- FontUnitConverter.cs
- Page.cs
- MouseEvent.cs
- CompositeFontFamily.cs
- AutomationPatternInfo.cs
- EditingMode.cs
- KnowledgeBase.cs
- StrongName.cs
- DictionaryEntry.cs
- Symbol.cs
- ConfigXmlComment.cs
- SafeNativeMethods.cs
- Point3D.cs
- EventDescriptor.cs
- DeclarativeCatalogPart.cs
- WebResourceUtil.cs
- FixedTextPointer.cs
- Configuration.cs
- SmiRecordBuffer.cs
- ActivityExecutorOperation.cs
- ActiveXHost.cs
- PriorityQueue.cs
- GuidConverter.cs
- RangeBaseAutomationPeer.cs
- TreeNodeEventArgs.cs
- uribuilder.cs
- SpellerInterop.cs
- ErrorCodes.cs
- AddInControllerImpl.cs
- _UriTypeConverter.cs
- Margins.cs
- Highlights.cs
- ISAPIRuntime.cs
- LinearGradientBrush.cs
- DescendentsWalkerBase.cs
- EntityCommandExecutionException.cs
- Assembly.cs
- UrlAuthorizationModule.cs
- ProxyManager.cs
- SerialReceived.cs
- SecurityValidationBehavior.cs
- RectIndependentAnimationStorage.cs
- PropertyMappingExceptionEventArgs.cs
- PointAnimationUsingKeyFrames.cs
- CustomAttributeFormatException.cs
- MessageSecurityOverHttpElement.cs
- ADRoleFactory.cs
- ObjectStateManager.cs
- InputLangChangeRequestEvent.cs
- PrtTicket_Public_Simple.cs
- Underline.cs
- CookielessData.cs
- OpenTypeLayout.cs
- XhtmlBasicValidatorAdapter.cs
- JsonEncodingStreamWrapper.cs
- DataServiceSaveChangesEventArgs.cs
- ExpressionEditor.cs
- OutOfMemoryException.cs
- MDIClient.cs
- ScrollChrome.cs
- DayRenderEvent.cs
- Attachment.cs
- BigInt.cs
- DbFunctionCommandTree.cs
- ListViewDeleteEventArgs.cs
- ManifestResourceInfo.cs
- CodeLabeledStatement.cs