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
- TreeNodeBindingCollection.cs
- ParentQuery.cs
- ScriptingSectionGroup.cs
- UriTemplateQueryValue.cs
- RuntimeConfigLKG.cs
- FileSystemWatcher.cs
- OrderByExpression.cs
- WindowsRichEdit.cs
- WebPartZone.cs
- StyleXamlTreeBuilder.cs
- ListControlConvertEventArgs.cs
- AssociationType.cs
- PocoPropertyAccessorStrategy.cs
- CellNormalizer.cs
- RegexStringValidatorAttribute.cs
- DomNameTable.cs
- DetailsViewPagerRow.cs
- OleDbCommandBuilder.cs
- MessagePropertyDescriptionCollection.cs
- SlotInfo.cs
- ScriptReference.cs
- Zone.cs
- UInt64Converter.cs
- ClientBuildManager.cs
- EdmValidator.cs
- XmlDocumentFragment.cs
- DocumentationServerProtocol.cs
- FontFamily.cs
- AsymmetricSignatureDeformatter.cs
- FormsAuthentication.cs
- DebugView.cs
- DBConnectionString.cs
- BamlStream.cs
- UnaryQueryOperator.cs
- PointIndependentAnimationStorage.cs
- CatalogPartCollection.cs
- EncoderBestFitFallback.cs
- StringAnimationBase.cs
- Size.cs
- AutomationIdentifierGuids.cs
- SqlVisitor.cs
- Thread.cs
- EntityWithChangeTrackerStrategy.cs
- WeakReadOnlyCollection.cs
- QueryOptionExpression.cs
- DataObjectEventArgs.cs
- TemplateAction.cs
- SafeNativeMethodsOther.cs
- ProcessHost.cs
- TextEffect.cs
- RecordConverter.cs
- EditorZoneBase.cs
- SapiInterop.cs
- BeginStoryboard.cs
- PartialCachingControl.cs
- XmlSchemaGroup.cs
- OdbcFactory.cs
- DrawingVisual.cs
- ImageBrush.cs
- Choices.cs
- TextElementEditingBehaviorAttribute.cs
- Helper.cs
- DynamicDiscoSearcher.cs
- PageCache.cs
- BypassElement.cs
- PathSegmentCollection.cs
- RouteValueExpressionBuilder.cs
- XmlAttributeProperties.cs
- PageThemeParser.cs
- DataViewListener.cs
- HttpFileCollection.cs
- MenuItem.cs
- DefaultValueMapping.cs
- CommandHelper.cs
- RawTextInputReport.cs
- ScriptResourceAttribute.cs
- GeneralTransform3D.cs
- Rectangle.cs
- TypefaceCollection.cs
- FileDialogPermission.cs
- ValidationPropertyAttribute.cs
- UserControl.cs
- RegisteredDisposeScript.cs
- SizeKeyFrameCollection.cs
- ModuleBuilder.cs
- SessionStateContainer.cs
- EncoderExceptionFallback.cs
- CredentialManagerDialog.cs
- LoginCancelEventArgs.cs
- BamlTreeMap.cs
- MaterialGroup.cs
- SqlStatistics.cs
- WebPartUtil.cs
- SiteMapSection.cs
- ComplexBindingPropertiesAttribute.cs
- TreeViewEvent.cs
- ToolstripProfessionalRenderer.cs
- CopyNodeSetAction.cs
- DataRowExtensions.cs
- ChangeInterceptorAttribute.cs