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
- QualificationDataAttribute.cs
- DuplicateWaitObjectException.cs
- PathNode.cs
- HttpRuntimeSection.cs
- OdbcTransaction.cs
- DataGridSortCommandEventArgs.cs
- ErrorHandler.cs
- HtmlHistory.cs
- TreeViewDesigner.cs
- XmlComment.cs
- NavigationProperty.cs
- TerminatorSinks.cs
- CheckBoxField.cs
- InlineUIContainer.cs
- DocumentReferenceCollection.cs
- FormatVersion.cs
- GeometryHitTestParameters.cs
- FamilyCollection.cs
- CorruptingExceptionCommon.cs
- SqlFacetAttribute.cs
- TabControlDesigner.cs
- UpdateManifestForBrowserApplication.cs
- DependencyPropertyKind.cs
- RuleSetDialog.cs
- CharStorage.cs
- NamespaceExpr.cs
- BlurBitmapEffect.cs
- SmiTypedGetterSetter.cs
- DataFormats.cs
- RedirectionProxy.cs
- WebEventTraceProvider.cs
- ConnectionStringsExpressionBuilder.cs
- StructuredType.cs
- PresentationTraceSources.cs
- FormatterServices.cs
- Types.cs
- DesignTimeTemplateParser.cs
- Knowncolors.cs
- XsltException.cs
- InternalTransaction.cs
- RangeBase.cs
- XPathMultyIterator.cs
- BitmapInitialize.cs
- ContainerCodeDomSerializer.cs
- TreeViewCancelEvent.cs
- VersionPair.cs
- RestHandlerFactory.cs
- CurrentChangedEventManager.cs
- BackEase.cs
- OleDbStruct.cs
- WsdlEndpointConversionContext.cs
- DetailsViewDesigner.cs
- SqlTypeSystemProvider.cs
- MimeBasePart.cs
- GeneralTransformGroup.cs
- Int16AnimationBase.cs
- ReflectionHelper.cs
- ZoomPercentageConverter.cs
- IisTraceListener.cs
- WebPartPersonalization.cs
- ProcessHostServerConfig.cs
- NamespaceDecl.cs
- DiagnosticsConfiguration.cs
- Size3DConverter.cs
- LoginName.cs
- LineInfo.cs
- DebugView.cs
- TopClause.cs
- BitSet.cs
- SynchronizationContext.cs
- SecurityContextSecurityTokenParameters.cs
- WebPartRestoreVerb.cs
- SHA1Cng.cs
- ReliabilityContractAttribute.cs
- XPathNodePointer.cs
- HuffCodec.cs
- AppDomainProtocolHandler.cs
- TreeWalker.cs
- IIS7UserPrincipal.cs
- ConsoleKeyInfo.cs
- ClosableStream.cs
- XPathDocumentIterator.cs
- WorkflowDefinitionDispenser.cs
- TypeLibConverter.cs
- InstanceLockLostException.cs
- TextHidden.cs
- EnvelopedSignatureTransform.cs
- RC2.cs
- AuthenticationManager.cs
- AuthenticationService.cs
- SafePEFileHandle.cs
- BlockUIContainer.cs
- XmlSchemaAppInfo.cs
- AssemblyInfo.cs
- XmlSerializationWriter.cs
- SqlDataSourceEnumerator.cs
- StoreContentChangedEventArgs.cs
- WebBrowserUriTypeConverter.cs
- UInt32Converter.cs
- InputProcessorProfilesLoader.cs