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
- RawStylusInputReport.cs
- Wizard.cs
- DefaultAssemblyResolver.cs
- TreeViewCancelEvent.cs
- UserControlDesigner.cs
- MenuItem.cs
- FileChangeNotifier.cs
- IncrementalCompileAnalyzer.cs
- IpcClientManager.cs
- MarshalByRefObject.cs
- CultureMapper.cs
- Transform3DCollection.cs
- PriorityBinding.cs
- ControlIdConverter.cs
- DrawingGroupDrawingContext.cs
- SwitchAttribute.cs
- PTManager.cs
- EtwTrace.cs
- HtmlTable.cs
- QilSortKey.cs
- TrustManagerMoreInformation.cs
- FormsAuthenticationUserCollection.cs
- PackUriHelper.cs
- Style.cs
- ToolboxComponentsCreatingEventArgs.cs
- CodeSnippetTypeMember.cs
- MenuItemCollection.cs
- ColorConvertedBitmap.cs
- QueryPageSettingsEventArgs.cs
- XmlAttributeAttribute.cs
- XmlSchemaInfo.cs
- TypeToArgumentTypeConverter.cs
- PartialList.cs
- ColorTypeConverter.cs
- RichTextBoxAutomationPeer.cs
- TypeForwardedFromAttribute.cs
- RewritingSimplifier.cs
- TextStore.cs
- StructuredType.cs
- KeyInstance.cs
- _BasicClient.cs
- TdsParserSessionPool.cs
- XamlVector3DCollectionSerializer.cs
- XmlIlGenerator.cs
- ClusterSafeNativeMethods.cs
- SelectionUIHandler.cs
- XmlSequenceWriter.cs
- CompoundFileStreamReference.cs
- SupportsEventValidationAttribute.cs
- WebEventTraceProvider.cs
- OpenFileDialog.cs
- RawMouseInputReport.cs
- VolatileResourceManager.cs
- SafeIUnknown.cs
- SqlWorkflowInstanceStore.cs
- PropertyGridView.cs
- SchemaNames.cs
- CodeGenerator.cs
- XmlLanguageConverter.cs
- CurrentChangingEventManager.cs
- DynamicRendererThreadManager.cs
- NetworkCredential.cs
- WorkflowItemsPresenter.cs
- PnrpPermission.cs
- DataSourceControlBuilder.cs
- DataGridViewCellParsingEventArgs.cs
- XmlDataDocument.cs
- TerminateDesigner.cs
- DelayedRegex.cs
- X509ChainPolicy.cs
- WebPartConnection.cs
- DataGridViewRowPostPaintEventArgs.cs
- MarkupCompilePass1.cs
- PageContentAsyncResult.cs
- PermissionListSet.cs
- RIPEMD160.cs
- DoubleConverter.cs
- SortKey.cs
- ResourceDefaultValueAttribute.cs
- MatchingStyle.cs
- ScriptingProfileServiceSection.cs
- LazyTextWriterCreator.cs
- FlowLayoutPanel.cs
- ColumnBinding.cs
- NativeObjectSecurity.cs
- EntityParameterCollection.cs
- Screen.cs
- SelectionItemProviderWrapper.cs
- NativeMethods.cs
- ColorConverter.cs
- DurableMessageDispatchInspector.cs
- CatalogPart.cs
- SubMenuStyleCollection.cs
- AutomationAttributeInfo.cs
- ElementHostPropertyMap.cs
- httpapplicationstate.cs
- AdornerDecorator.cs
- Encoding.cs
- DataGridView.cs
- SingleTagSectionHandler.cs