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
- srgsitem.cs
- GridEntry.cs
- WindowsContainer.cs
- NullableDoubleMinMaxAggregationOperator.cs
- DomNameTable.cs
- EventBuilder.cs
- BitmapMetadata.cs
- PinnedBufferMemoryStream.cs
- EntitySqlQueryBuilder.cs
- VersionedStream.cs
- SiteMapPath.cs
- RouteValueDictionary.cs
- SqlBulkCopy.cs
- EntityViewGenerator.cs
- DataGridViewRowStateChangedEventArgs.cs
- basevalidator.cs
- LinkedList.cs
- TextSpanModifier.cs
- EntityDataSourceConfigureObjectContext.cs
- uribuilder.cs
- ScrollItemPatternIdentifiers.cs
- VariantWrapper.cs
- CqlGenerator.cs
- IriParsingElement.cs
- JapaneseLunisolarCalendar.cs
- RegexReplacement.cs
- UTF32Encoding.cs
- Imaging.cs
- ProviderConnectionPointCollection.cs
- DispatcherExceptionFilterEventArgs.cs
- MobilePage.cs
- MonthCalendar.cs
- TransformDescriptor.cs
- TemplateParser.cs
- XpsS0ValidatingLoader.cs
- List.cs
- SQLStringStorage.cs
- UntrustedRecipientException.cs
- ColorTransform.cs
- TreeViewHitTestInfo.cs
- AudioException.cs
- DataGridViewImageCell.cs
- GlyphRunDrawing.cs
- FixedDSBuilder.cs
- CancelEventArgs.cs
- XsltLoader.cs
- SystemResources.cs
- SkewTransform.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- ButtonStandardAdapter.cs
- UnknownWrapper.cs
- SqlProfileProvider.cs
- TypedTableGenerator.cs
- Brush.cs
- WindowsFormsHost.cs
- IDictionary.cs
- ObjectAssociationEndMapping.cs
- SystemIcons.cs
- FieldReference.cs
- ConfigXmlCDataSection.cs
- TableParaClient.cs
- FileAccessException.cs
- SystemShuttingDownException.cs
- ConfigUtil.cs
- QueryOutputWriter.cs
- Compiler.cs
- NumberAction.cs
- CodeTypeDeclarationCollection.cs
- VectorKeyFrameCollection.cs
- PersonalizationState.cs
- Camera.cs
- SerializationInfo.cs
- ChannelPool.cs
- Misc.cs
- InternalBase.cs
- Polygon.cs
- EnumValidator.cs
- HtmlFormWrapper.cs
- CaseKeyBox.xaml.cs
- MediaElementAutomationPeer.cs
- ElementNotAvailableException.cs
- TransactionManagerProxy.cs
- DbDataReader.cs
- ExpressionLink.cs
- ConfigurationValidatorAttribute.cs
- XMLSchema.cs
- arabicshape.cs
- ExpressionBindingCollection.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- ExternalFile.cs
- PluralizationService.cs
- Request.cs
- WrappedOptions.cs
- AuthorizationRuleCollection.cs
- GeometryModel3D.cs
- ObjectDataSourceDisposingEventArgs.cs
- PerformanceCounterPermission.cs
- _Events.cs
- SqlFlattener.cs
- EventSchemaTraceListener.cs