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
- DataSetUtil.cs
- HebrewCalendar.cs
- diagnosticsswitches.cs
- HtmlGenericControl.cs
- ColumnCollection.cs
- EditorAttribute.cs
- DrawingAttributesDefaultValueFactory.cs
- ComponentResourceKeyConverter.cs
- VariantWrapper.cs
- AccessKeyManager.cs
- ScaleTransform.cs
- EntityDataSourceConfigureObjectContextPanel.cs
- TypeToken.cs
- KeyValueSerializer.cs
- SemaphoreFullException.cs
- Track.cs
- EntityDescriptor.cs
- Substitution.cs
- CollectionContainer.cs
- DefaultValueConverter.cs
- URI.cs
- WinFormsUtils.cs
- ControllableStoryboardAction.cs
- LicFileLicenseProvider.cs
- CodePageEncoding.cs
- EntitySetBaseCollection.cs
- KeyValuePair.cs
- InstancePersistenceCommand.cs
- SimpleRecyclingCache.cs
- AssemblyInfo.cs
- XmlNavigatorFilter.cs
- DeploymentSectionCache.cs
- MenuCommand.cs
- ActivityExecutionContextCollection.cs
- DataStorage.cs
- DataGridViewLayoutData.cs
- GradientBrush.cs
- Operator.cs
- ObjectList.cs
- WebPartExportVerb.cs
- TranslateTransform.cs
- IconHelper.cs
- WindowsTab.cs
- Decorator.cs
- NamedElement.cs
- RegexGroupCollection.cs
- AtomServiceDocumentSerializer.cs
- SiteOfOriginPart.cs
- ButtonBaseAdapter.cs
- ImageListStreamer.cs
- SqlSelectStatement.cs
- CellCreator.cs
- Facet.cs
- LiteralControl.cs
- ClosableStream.cs
- SafeReversePInvokeHandle.cs
- ObservableCollection.cs
- TableChangeProcessor.cs
- DurableInstanceContextProvider.cs
- COMException.cs
- ChannelCredentials.cs
- FunctionCommandText.cs
- SmtpFailedRecipientsException.cs
- NonParentingControl.cs
- RepeatButtonAutomationPeer.cs
- TimeZone.cs
- CreateUserWizardStep.cs
- StylusButtonCollection.cs
- DefaultMergeHelper.cs
- NameValueConfigurationCollection.cs
- JumpList.cs
- PauseStoryboard.cs
- Decimal.cs
- StateMachineAction.cs
- ProgressBar.cs
- WindowsFormsHostPropertyMap.cs
- XmlRawWriter.cs
- AuthorizationRule.cs
- HttpCookie.cs
- DocumentPaginator.cs
- AppSettingsExpressionBuilder.cs
- MetadataWorkspace.cs
- DynamicPropertyHolder.cs
- SecurityTimestamp.cs
- DataGridViewButtonCell.cs
- CroppedBitmap.cs
- AssociationEndMember.cs
- MessageQueueException.cs
- ListBase.cs
- StatusBarDesigner.cs
- ReadOnlyDictionary.cs
- UnsafeNativeMethods.cs
- FileSystemEnumerable.cs
- ConnectionManager.cs
- XmlAttributeAttribute.cs
- EnlistmentState.cs
- PeerNearMe.cs
- GridViewDeletedEventArgs.cs
- DesigntimeLicenseContextSerializer.cs
- TailCallAnalyzer.cs