Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- CacheMemory.cs
- ListViewAutomationPeer.cs
- MouseGesture.cs
- KeyManager.cs
- CancellationTokenSource.cs
- CaseInsensitiveComparer.cs
- SystemIPAddressInformation.cs
- ServiceMetadataContractBehavior.cs
- SqlConnection.cs
- CompilationSection.cs
- SchemeSettingElementCollection.cs
- CharAnimationBase.cs
- COM2ComponentEditor.cs
- DataGridViewCellStateChangedEventArgs.cs
- PassportAuthenticationEventArgs.cs
- Random.cs
- TemplateControlCodeDomTreeGenerator.cs
- DataServiceHost.cs
- MasterPage.cs
- KeyFrames.cs
- DeferredRunTextReference.cs
- TextDecorations.cs
- DaylightTime.cs
- PerformanceCounterPermissionEntryCollection.cs
- EntityReference.cs
- DefaultSection.cs
- ToolStripContextMenu.cs
- _ListenerResponseStream.cs
- ByteStreamMessageUtility.cs
- UdpSocketReceiveManager.cs
- XmlSchemaAnnotation.cs
- ExtensionSimplifierMarkupObject.cs
- WarningException.cs
- MergePropertyDescriptor.cs
- JpegBitmapEncoder.cs
- ContextMenu.cs
- ObjectDataSourceStatusEventArgs.cs
- SplitterPanelDesigner.cs
- WMICapabilities.cs
- FixedSOMTextRun.cs
- TableStyle.cs
- DataGrid.cs
- SingleAnimationUsingKeyFrames.cs
- BitmapEffectCollection.cs
- ManualResetEvent.cs
- PerfCounters.cs
- ServiceNameElementCollection.cs
- RoleServiceManager.cs
- Invariant.cs
- Int16KeyFrameCollection.cs
- ContravarianceAdapter.cs
- TemplateManager.cs
- ModelUIElement3D.cs
- ParserHooks.cs
- HtmlElementEventArgs.cs
- SmtpException.cs
- FillRuleValidation.cs
- GeneralTransform.cs
- WebPartEditorOkVerb.cs
- XmlSchemaGroupRef.cs
- ItemChangedEventArgs.cs
- NullPackagingPolicy.cs
- DescendantBaseQuery.cs
- AliasExpr.cs
- Int16AnimationUsingKeyFrames.cs
- HttpConfigurationContext.cs
- ConfigurationPermission.cs
- TransformDescriptor.cs
- CodeIterationStatement.cs
- Matrix3DConverter.cs
- ILGenerator.cs
- TypeBuilderInstantiation.cs
- ImageList.cs
- DataGridViewTextBoxCell.cs
- DPTypeDescriptorContext.cs
- TcpProcessProtocolHandler.cs
- TargetPerspective.cs
- ParameterSubsegment.cs
- ToolStripSeparatorRenderEventArgs.cs
- DLinqDataModelProvider.cs
- AuthenticationModulesSection.cs
- VersionPair.cs
- EntityCollection.cs
- TextDecorationUnitValidation.cs
- AdapterDictionary.cs
- XMLSyntaxException.cs
- MultiBindingExpression.cs
- ObjectSet.cs
- IdleTimeoutMonitor.cs
- TriState.cs
- HtmlValidatorAdapter.cs
- SqlFunctions.cs
- NameValueFileSectionHandler.cs
- UntypedNullExpression.cs
- ButtonBaseAdapter.cs
- HScrollProperties.cs
- PointConverter.cs
- UserNamePasswordServiceCredential.cs
- PropertyValueChangedEvent.cs
- ProcessInfo.cs