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
- Rect3DValueSerializer.cs
- NetworkCredential.cs
- PointAnimationUsingKeyFrames.cs
- Tracer.cs
- Message.cs
- XsdBuildProvider.cs
- ProvidePropertyAttribute.cs
- EmptyEnumerable.cs
- OdbcHandle.cs
- ConfigurationException.cs
- ObjectPropertyMapping.cs
- DiscoveryOperationContextExtension.cs
- PublisherIdentityPermission.cs
- WindowsServiceCredential.cs
- DBAsyncResult.cs
- ListManagerBindingsCollection.cs
- Renderer.cs
- TextBoxBase.cs
- SqlTypeSystemProvider.cs
- BreakRecordTable.cs
- HtmlPageAdapter.cs
- GeometryHitTestParameters.cs
- ButtonBaseAdapter.cs
- PersonalizationStateQuery.cs
- BmpBitmapDecoder.cs
- PageFunction.cs
- ClaimComparer.cs
- CodeFieldReferenceExpression.cs
- ProfileProvider.cs
- DBCSCodePageEncoding.cs
- RootBuilder.cs
- HandledEventArgs.cs
- DependencyPropertyChangedEventArgs.cs
- ThreadAbortException.cs
- ColumnMapTranslator.cs
- DataTable.cs
- HostingEnvironmentException.cs
- ConnectionInterfaceCollection.cs
- _FtpDataStream.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- IsolatedStorageFile.cs
- AnnotationMap.cs
- RenamedEventArgs.cs
- SqlUtils.cs
- XmlTextReaderImpl.cs
- SQLInt64.cs
- ToolBarButtonClickEvent.cs
- SafeProcessHandle.cs
- _CacheStreams.cs
- OdbcPermission.cs
- WhitespaceRuleReader.cs
- LogManagementAsyncResult.cs
- ListViewGroupConverter.cs
- WebBrowserDocumentCompletedEventHandler.cs
- TemplateBindingExtension.cs
- EntityTransaction.cs
- PrivilegedConfigurationManager.cs
- NativeMsmqMessage.cs
- TrackingLocation.cs
- TreeViewAutomationPeer.cs
- UInt16Converter.cs
- SuppressMessageAttribute.cs
- ComAwareEventInfo.cs
- PrincipalPermissionMode.cs
- SettingsSection.cs
- BitmapCodecInfo.cs
- XsltConvert.cs
- SecurityContext.cs
- RemotingSurrogateSelector.cs
- XpsFixedDocumentReaderWriter.cs
- NamespaceInfo.cs
- SqlFacetAttribute.cs
- ReflectionHelper.cs
- BufferedReceiveElement.cs
- SessionSwitchEventArgs.cs
- HtmlCalendarAdapter.cs
- URLMembershipCondition.cs
- CodeThrowExceptionStatement.cs
- BuildProviderAppliesToAttribute.cs
- GPRECTF.cs
- RuntimeHandles.cs
- Panel.cs
- CustomError.cs
- ExpressionList.cs
- ProjectionPruner.cs
- PageCodeDomTreeGenerator.cs
- UnsafeNativeMethods.cs
- TypeResolver.cs
- EtwTrackingBehaviorElement.cs
- HttpProxyTransportBindingElement.cs
- ControlEvent.cs
- HtmlElementCollection.cs
- MenuCommand.cs
- MsmqAppDomainProtocolHandler.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- ResourceContainer.cs
- TypeReference.cs
- Signature.cs
- PropertyItem.cs
- FilteredXmlReader.cs