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
- BinaryExpression.cs
- EventProviderClassic.cs
- OSFeature.cs
- RepeaterItem.cs
- EventDescriptorCollection.cs
- XmlSchemaObject.cs
- SByteStorage.cs
- CompositeActivityCodeGenerator.cs
- XmlReflectionImporter.cs
- RecordBuilder.cs
- KoreanLunisolarCalendar.cs
- EncryptedData.cs
- JpegBitmapEncoder.cs
- WindowsTokenRoleProvider.cs
- ObjectListCommandsPage.cs
- GeometryHitTestResult.cs
- SystemIPv6InterfaceProperties.cs
- XmlEncoding.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- RequestDescription.cs
- BasicHttpMessageCredentialType.cs
- Base64Decoder.cs
- EmptyEnumerator.cs
- AmbientLight.cs
- BasicBrowserDialog.designer.cs
- Transform.cs
- DesignerSerializationVisibilityAttribute.cs
- HttpHandler.cs
- XmlAutoDetectWriter.cs
- unsafenativemethodsother.cs
- TextPatternIdentifiers.cs
- ExpressionConverter.cs
- TypeSystemHelpers.cs
- SHA256Managed.cs
- Hyperlink.cs
- TypeListConverter.cs
- DropSourceBehavior.cs
- EntryWrittenEventArgs.cs
- ConnectionStringsSection.cs
- FormViewUpdatedEventArgs.cs
- ELinqQueryState.cs
- FreezableDefaultValueFactory.cs
- PropertyBuilder.cs
- PingReply.cs
- PageVisual.cs
- CultureTable.cs
- Run.cs
- ObjectContext.cs
- StorageInfo.cs
- BevelBitmapEffect.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ElementHost.cs
- PropertyNames.cs
- SQLDateTimeStorage.cs
- SqlWorkflowPersistenceService.cs
- ToolStripOverflow.cs
- MethodCallConverter.cs
- MachineKeyConverter.cs
- DataColumnChangeEvent.cs
- GetIsBrowserClientRequest.cs
- UndoUnit.cs
- TextParagraphCache.cs
- ListBoxItemWrapperAutomationPeer.cs
- EventSinkHelperWriter.cs
- IdnMapping.cs
- SystemTcpConnection.cs
- SQLDecimal.cs
- ComNativeDescriptor.cs
- GenericIdentity.cs
- SqlRowUpdatedEvent.cs
- AQNBuilder.cs
- BehaviorEditorPart.cs
- DateTimeConstantAttribute.cs
- unitconverter.cs
- TextMetrics.cs
- Line.cs
- TextEditorTyping.cs
- PersonalizationState.cs
- SessionIDManager.cs
- GridViewItemAutomationPeer.cs
- ImageField.cs
- ObjectDataProvider.cs
- ThreadStartException.cs
- HtmlShimManager.cs
- ItemsControlAutomationPeer.cs
- Normalization.cs
- PartialClassGenerationTask.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- DbConnectionStringBuilder.cs
- _SSPIWrapper.cs
- Composition.cs
- XmlValidatingReader.cs
- ShaperBuffers.cs
- CodeAttributeArgumentCollection.cs
- EmptyControlCollection.cs
- LayoutEngine.cs
- SystemIPAddressInformation.cs
- SchemaType.cs
- LookupBindingPropertiesAttribute.cs
- TimeSpanMinutesOrInfiniteConverter.cs