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
- DragCompletedEventArgs.cs
- GridErrorDlg.cs
- GenericXmlSecurityToken.cs
- SpellerInterop.cs
- ThreadPoolTaskScheduler.cs
- FileAuthorizationModule.cs
- MessageDecoder.cs
- InputLanguageProfileNotifySink.cs
- HtmlUtf8RawTextWriter.cs
- XPathSelectionIterator.cs
- Wrapper.cs
- RegistrySecurity.cs
- GeneralTransform3D.cs
- BypassElement.cs
- PersonalizationStateInfoCollection.cs
- ObjectViewFactory.cs
- HostingEnvironmentWrapper.cs
- wgx_sdk_version.cs
- HashCodeCombiner.cs
- CodeThrowExceptionStatement.cs
- XhtmlBasicLiteralTextAdapter.cs
- CodeNamespaceImportCollection.cs
- TreePrinter.cs
- SchemaTableOptionalColumn.cs
- SystemSounds.cs
- TextParentUndoUnit.cs
- ZeroOpNode.cs
- IisTraceListener.cs
- SqlDependencyUtils.cs
- MetadataItemEmitter.cs
- TileModeValidation.cs
- TextCharacters.cs
- TableItemProviderWrapper.cs
- ObjectItemAssemblyLoader.cs
- AnimationTimeline.cs
- WebPartMenuStyle.cs
- SqlBooleanMismatchVisitor.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- SqlInternalConnection.cs
- WebConfigurationHostFileChange.cs
- WebPartConnectionsCancelEventArgs.cs
- _NegotiateClient.cs
- LineServicesCallbacks.cs
- SHA384Managed.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- HttpsChannelFactory.cs
- WSSecureConversationDec2005.cs
- ObjectSet.cs
- RawStylusInputReport.cs
- DesignerSerializationVisibilityAttribute.cs
- SchemaImporter.cs
- Calendar.cs
- QilUnary.cs
- FlowDocumentReader.cs
- coordinator.cs
- CollectionView.cs
- ToolStripDropDownClosingEventArgs.cs
- TrayIconDesigner.cs
- DecoderFallback.cs
- ClientScriptManagerWrapper.cs
- FontFamilyValueSerializer.cs
- HttpCapabilitiesEvaluator.cs
- XmlSerializerNamespaces.cs
- ReplacementText.cs
- CharEnumerator.cs
- DataGridViewDataErrorEventArgs.cs
- designeractionlistschangedeventargs.cs
- WindowsScroll.cs
- CommandEventArgs.cs
- DPTypeDescriptorContext.cs
- ParameterBuilder.cs
- String.cs
- DropShadowEffect.cs
- StructuredTypeEmitter.cs
- FontCollection.cs
- DataPager.cs
- LayoutManager.cs
- WebEvents.cs
- TabControlAutomationPeer.cs
- DataGridDesigner.cs
- DependencyObject.cs
- OdbcTransaction.cs
- SafeProcessHandle.cs
- WebPartsPersonalization.cs
- ExpressionVisitor.cs
- TypeExtensionConverter.cs
- DoubleLinkList.cs
- WizardPanel.cs
- LinkedList.cs
- securitycriticaldataformultiplegetandset.cs
- GridView.cs
- KnownBoxes.cs
- Resources.Designer.cs
- SystemIcons.cs
- RuntimeConfigLKG.cs
- Native.cs
- TypeConverterHelper.cs
- GZipStream.cs
- StylusTip.cs
- ChangeBlockUndoRecord.cs