Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- sqlnorm.cs
- webbrowsersite.cs
- Deserializer.cs
- Message.cs
- DetailsViewRow.cs
- GridViewCommandEventArgs.cs
- SmtpNegotiateAuthenticationModule.cs
- ErrorWrapper.cs
- HMACSHA384.cs
- TypeValidationEventArgs.cs
- XamlSerializer.cs
- wgx_commands.cs
- WindowsRichEditRange.cs
- CollectionViewGroupInternal.cs
- HandlerFactoryWrapper.cs
- FileCodeGroup.cs
- ColumnBinding.cs
- PropertyNames.cs
- XhtmlTextWriter.cs
- Formatter.cs
- TraceShell.cs
- XmlSchemaSimpleTypeRestriction.cs
- WindowsSlider.cs
- PropertyChangeTracker.cs
- Setter.cs
- NextPreviousPagerField.cs
- RichTextBoxAutomationPeer.cs
- RedistVersionInfo.cs
- RulePatternOps.cs
- FilePresentation.cs
- MetaModel.cs
- FileSecurity.cs
- Canvas.cs
- HttpCookiesSection.cs
- SqlNodeTypeOperators.cs
- ModelVisual3D.cs
- DetailsViewDeleteEventArgs.cs
- SQLUtility.cs
- ObjectManager.cs
- future.cs
- TextElementAutomationPeer.cs
- FormViewPagerRow.cs
- SignatureToken.cs
- DataGridDesigner.cs
- CacheRequest.cs
- SevenBitStream.cs
- DataFieldConverter.cs
- SQLBoolean.cs
- SimpleRecyclingCache.cs
- LassoSelectionBehavior.cs
- ExtentKey.cs
- FloaterBaseParaClient.cs
- Code.cs
- DataGridViewColumn.cs
- CollectionBase.cs
- XmlUtf8RawTextWriter.cs
- Literal.cs
- EmissiveMaterial.cs
- ToggleProviderWrapper.cs
- ErrorRuntimeConfig.cs
- InputMethodStateTypeInfo.cs
- RsaSecurityKey.cs
- transactioncontext.cs
- LoadedOrUnloadedOperation.cs
- OLEDB_Util.cs
- StyleTypedPropertyAttribute.cs
- FormatSettings.cs
- ImageCodecInfo.cs
- CommandDevice.cs
- ListBindableAttribute.cs
- NumberFormatter.cs
- Encoding.cs
- RadioButtonList.cs
- ConfigurationSchemaErrors.cs
- ScriptRegistrationManager.cs
- ErrorWrapper.cs
- TextElement.cs
- RtfToXamlReader.cs
- DocumentEventArgs.cs
- OdbcError.cs
- NumberSubstitution.cs
- AttachedPropertiesService.cs
- OutputScope.cs
- PartialCachingControl.cs
- MsmqIntegrationProcessProtocolHandler.cs
- PreviewKeyDownEventArgs.cs
- BaseTreeIterator.cs
- CrossContextChannel.cs
- XmlSchemaCollection.cs
- XmlStrings.cs
- HwndProxyElementProvider.cs
- __Error.cs
- DirtyTextRange.cs
- QilNode.cs
- DispatcherHooks.cs
- SignedPkcs7.cs
- SqlClientWrapperSmiStreamChars.cs
- LinqToSqlWrapper.cs
- EncoderParameters.cs
- Rotation3DAnimation.cs