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
- WebPartPersonalization.cs
- JournalEntryStack.cs
- AppDomainAttributes.cs
- HighlightVisual.cs
- ExpressionParser.cs
- EmptyEnumerator.cs
- ChildChangedEventArgs.cs
- PropertyChangingEventArgs.cs
- EventProxy.cs
- newitemfactory.cs
- TextInfo.cs
- _LocalDataStoreMgr.cs
- RowVisual.cs
- Menu.cs
- KoreanCalendar.cs
- PrimitiveType.cs
- SetIndexBinder.cs
- DateTime.cs
- DataServiceQueryContinuation.cs
- ScriptModule.cs
- NativeMethods.cs
- ReferenceSchema.cs
- ThreadPoolTaskScheduler.cs
- OletxTransactionManager.cs
- CssStyleCollection.cs
- DockingAttribute.cs
- _DigestClient.cs
- ConstructorNeedsTagAttribute.cs
- RuleAction.cs
- UIntPtr.cs
- WebBrowser.cs
- XhtmlBasicTextViewAdapter.cs
- ZipIOFileItemStream.cs
- SemaphoreFullException.cs
- ValidationResult.cs
- NavigationPropertyAccessor.cs
- MachineSettingsSection.cs
- MetadataSource.cs
- TCPListener.cs
- DragDrop.cs
- EndpointDiscoveryMetadata11.cs
- ResourceReferenceExpression.cs
- CallSiteBinder.cs
- LocatorPart.cs
- FormDesigner.cs
- Mapping.cs
- Transform3DCollection.cs
- BindingListCollectionView.cs
- UriSection.cs
- EventLogLink.cs
- ProgressBarRenderer.cs
- Walker.cs
- OleDbInfoMessageEvent.cs
- CheckBox.cs
- TreeIterator.cs
- TextTreeTextBlock.cs
- ClientSettingsStore.cs
- OAVariantLib.cs
- _NegoState.cs
- AssemblyInfo.cs
- MetafileHeaderWmf.cs
- DecoderReplacementFallback.cs
- NativeActivityMetadata.cs
- SqlDataSourceCustomCommandPanel.cs
- DrawingVisualDrawingContext.cs
- PageCodeDomTreeGenerator.cs
- GridViewAutomationPeer.cs
- ConfigurationLockCollection.cs
- Buffer.cs
- ScriptResourceInfo.cs
- CompilationRelaxations.cs
- TripleDESCryptoServiceProvider.cs
- RightsManagementPermission.cs
- Win32Native.cs
- PropertyPathConverter.cs
- CompressEmulationStream.cs
- validation.cs
- StorageFunctionMapping.cs
- LocalServiceSecuritySettings.cs
- CodeDomDecompiler.cs
- ExtensibleClassFactory.cs
- FixedSOMTextRun.cs
- ResourcePool.cs
- BaseCAMarshaler.cs
- ClientTarget.cs
- DynamicExpression.cs
- BuildTopDownAttribute.cs
- ButtonBaseAutomationPeer.cs
- Utils.cs
- TableLayoutSettingsTypeConverter.cs
- Base64Encoder.cs
- DataGridColumnCollection.cs
- _LoggingObject.cs
- SoapCodeExporter.cs
- FixUp.cs
- ParserOptions.cs
- Timeline.cs
- DashStyles.cs
- MetadataItemEmitter.cs
- XamlRtfConverter.cs