Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / QueryCursorEventArgs.cs / 1305600 / 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
- DBSqlParser.cs
- KeyValueConfigurationCollection.cs
- Floater.cs
- ChangesetResponse.cs
- PropertyValueChangedEvent.cs
- DiagnosticsConfigurationHandler.cs
- ConfigurationPropertyAttribute.cs
- glyphs.cs
- EntityExpressionVisitor.cs
- DataContext.cs
- ComponentEditorForm.cs
- ValidationVisibilityAttribute.cs
- DesignerActionItem.cs
- DbDataSourceEnumerator.cs
- DetailsViewUpdateEventArgs.cs
- Win32Exception.cs
- AesCryptoServiceProvider.cs
- ButtonStandardAdapter.cs
- JsonXmlDataContract.cs
- FileStream.cs
- Button.cs
- TextMarkerSource.cs
- StylusButton.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- DataSourceCache.cs
- SerializationInfo.cs
- FlowDocumentFormatter.cs
- CompiledQueryCacheKey.cs
- DeclarativeCatalogPart.cs
- CodeGeneratorOptions.cs
- DiscreteKeyFrames.cs
- GridViewSortEventArgs.cs
- BindingOperations.cs
- Viewport3DVisual.cs
- DtrList.cs
- TemplatedWizardStep.cs
- GroupItemAutomationPeer.cs
- StrongNamePublicKeyBlob.cs
- CompiledXpathExpr.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ItemList.cs
- MetadataCollection.cs
- FloaterParaClient.cs
- ContextMarshalException.cs
- UnsafeNativeMethods.cs
- EntityProxyTypeInfo.cs
- EdmType.cs
- ToolStripPanelRow.cs
- LocatorBase.cs
- NamespaceQuery.cs
- EntityWithKeyStrategy.cs
- CLSCompliantAttribute.cs
- DynamicILGenerator.cs
- ArrayElementGridEntry.cs
- InvalidOleVariantTypeException.cs
- AnnotationService.cs
- TransformedBitmap.cs
- ToolboxComponentsCreatingEventArgs.cs
- InheritedPropertyChangedEventArgs.cs
- JournalEntry.cs
- NamedPermissionSet.cs
- Choices.cs
- SelectionRangeConverter.cs
- PreloadHost.cs
- WinInetCache.cs
- CacheDependency.cs
- ResetableIterator.cs
- AutomationProperty.cs
- PropertyValueChangedEvent.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- Completion.cs
- XMLUtil.cs
- XmlTextReaderImpl.cs
- Span.cs
- Thickness.cs
- PauseStoryboard.cs
- InheritanceContextHelper.cs
- CommentAction.cs
- TracePayload.cs
- ConnectionInterfaceCollection.cs
- DateRangeEvent.cs
- TemplateBindingExpressionConverter.cs
- ClientTargetCollection.cs
- ErrorEventArgs.cs
- TextLineResult.cs
- CheckBoxField.cs
- UnsafeNativeMethods.cs
- CompiledRegexRunnerFactory.cs
- ResourceReader.cs
- MimeParameters.cs
- SimpleType.cs
- WinFormsUtils.cs
- DataViewManagerListItemTypeDescriptor.cs
- HyperLink.cs
- PairComparer.cs
- SecurityHelper.cs
- GlyphsSerializer.cs
- Preprocessor.cs
- QueryAccessibilityHelpEvent.cs
- TextServicesCompartmentContext.cs