Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- GridViewRowPresenter.cs
- ISFTagAndGuidCache.cs
- NamedObject.cs
- SafeEventLogWriteHandle.cs
- Color.cs
- MenuAdapter.cs
- TCEAdapterGenerator.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- Helper.cs
- DataGridViewColumnTypeEditor.cs
- RegexGroup.cs
- InternalConfigEventArgs.cs
- _TLSstream.cs
- RootCodeDomSerializer.cs
- StringDictionaryCodeDomSerializer.cs
- Image.cs
- StylusButtonCollection.cs
- CommentGlyph.cs
- XmlElementList.cs
- TextServicesManager.cs
- DodSequenceMerge.cs
- SmtpNetworkElement.cs
- WindowsMenu.cs
- MtomMessageEncoder.cs
- StyleTypedPropertyAttribute.cs
- EventLogRecord.cs
- handlecollector.cs
- XmlHelper.cs
- X509Certificate.cs
- HandlerBase.cs
- AsyncResult.cs
- XslVisitor.cs
- HwndSource.cs
- HtmlElementCollection.cs
- ErrorRuntimeConfig.cs
- SqlVersion.cs
- SortFieldComparer.cs
- SqlFacetAttribute.cs
- GeneralTransformCollection.cs
- DataGridViewColumnHeaderCell.cs
- ClientTargetCollection.cs
- FixUpCollection.cs
- SqlDataReaderSmi.cs
- LowerCaseStringConverter.cs
- XamlFigureLengthSerializer.cs
- Registration.cs
- PointHitTestParameters.cs
- SynchronizedInputHelper.cs
- QueryNode.cs
- SmiTypedGetterSetter.cs
- RMEnrollmentPage1.cs
- ToolBarButton.cs
- ArrayMergeHelper.cs
- ZoomPercentageConverter.cs
- NonBatchDirectoryCompiler.cs
- EntitySqlQueryBuilder.cs
- CatalogPart.cs
- ObjectComplexPropertyMapping.cs
- InputReportEventArgs.cs
- ManualResetEvent.cs
- DesignerExtenders.cs
- AttachedAnnotationChangedEventArgs.cs
- TextLineBreak.cs
- GridViewSelectEventArgs.cs
- TypeValidationEventArgs.cs
- RuntimeHelpers.cs
- WebBrowserNavigatingEventHandler.cs
- SchemaNames.cs
- ConfigurationLocationCollection.cs
- RemoteWebConfigurationHostServer.cs
- CrossContextChannel.cs
- ComponentEditorForm.cs
- InsufficientExecutionStackException.cs
- CodeIdentifier.cs
- PropertyMetadata.cs
- FakeModelItemImpl.cs
- ScrollChrome.cs
- LinearGradientBrush.cs
- SqlParameter.cs
- FileFormatException.cs
- StylusPlugInCollection.cs
- WindowsPrincipal.cs
- HashUtility.cs
- FileInfo.cs
- BamlMapTable.cs
- NativeMethods.cs
- BitmapEffectState.cs
- NavigationProperty.cs
- ImageSourceConverter.cs
- SafeEventHandle.cs
- TripleDESCryptoServiceProvider.cs
- BaseAsyncResult.cs
- StringDictionaryEditor.cs
- SqlEnums.cs
- BitmapSizeOptions.cs
- TextTreeNode.cs
- IisTraceListener.cs
- OdbcParameter.cs
- DeleteMemberBinder.cs
- IList.cs