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
- AnnotationResource.cs
- UInt32Converter.cs
- DomainUpDown.cs
- SHA512Managed.cs
- JsonClassDataContract.cs
- Block.cs
- OracleLob.cs
- XmlQueryContext.cs
- TextEncodedRawTextWriter.cs
- Int32.cs
- Clause.cs
- Point4D.cs
- EditorPartCollection.cs
- HttpConfigurationContext.cs
- RSAPKCS1SignatureDeformatter.cs
- InstanceCreationEditor.cs
- SimpleHandlerFactory.cs
- InputReport.cs
- RelatedPropertyManager.cs
- SamlDelegatingWriter.cs
- EncodingStreamWrapper.cs
- ComplexType.cs
- Point.cs
- shaperfactory.cs
- DataGridViewHitTestInfo.cs
- BinHexDecoder.cs
- FormsAuthenticationModule.cs
- StorageScalarPropertyMapping.cs
- ObjectCacheSettings.cs
- NavigationPropertyEmitter.cs
- WebPartEditorApplyVerb.cs
- ElementProxy.cs
- SystemEvents.cs
- ListViewEditEventArgs.cs
- DynamicDataResources.Designer.cs
- SubstitutionList.cs
- _SecureChannel.cs
- HtmlHistory.cs
- PaintValueEventArgs.cs
- GroupDescription.cs
- oledbmetadatacollectionnames.cs
- SiteMapProvider.cs
- SqlFactory.cs
- CollectionDataContract.cs
- SamlAssertion.cs
- ToolStripStatusLabel.cs
- xml.cs
- _FtpControlStream.cs
- XPathAxisIterator.cs
- DecoderFallback.cs
- DrawingContext.cs
- Column.cs
- ManagementNamedValueCollection.cs
- HtmlElementEventArgs.cs
- TreeNodeConverter.cs
- SqlMethodTransformer.cs
- iisPickupDirectory.cs
- PrintPreviewDialog.cs
- ControlCachePolicy.cs
- KeyInfo.cs
- _LazyAsyncResult.cs
- DbProviderFactoriesConfigurationHandler.cs
- CommentEmitter.cs
- FacetDescriptionElement.cs
- EntitySetBase.cs
- ResourcePool.cs
- CodeDomSerializerBase.cs
- Stack.cs
- DefaultProxySection.cs
- ChildTable.cs
- OdbcErrorCollection.cs
- FontWeightConverter.cs
- CodeMemberField.cs
- ContextInformation.cs
- HttpCookiesSection.cs
- SQLMoney.cs
- FlagsAttribute.cs
- ImportCatalogPart.cs
- ColumnBinding.cs
- TokenBasedSet.cs
- DoubleKeyFrameCollection.cs
- safemediahandle.cs
- GlyphingCache.cs
- SqlDataSourceSelectingEventArgs.cs
- XmlUtil.cs
- Message.cs
- ChangePassword.cs
- TypeConstant.cs
- DataGridViewRowPrePaintEventArgs.cs
- SeekStoryboard.cs
- TextChangedEventArgs.cs
- LogicalTreeHelper.cs
- DescendentsWalkerBase.cs
- UriTemplate.cs
- CacheRequest.cs
- ColorConverter.cs
- Trace.cs
- ReadOnlyNameValueCollection.cs
- DisplayMemberTemplateSelector.cs
- DataGridViewColumnEventArgs.cs