Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Util.cs
- BinaryQueryOperator.cs
- ApplicationServicesHostFactory.cs
- WebPartConnectionsDisconnectVerb.cs
- RbTree.cs
- DBSqlParserTable.cs
- PerformanceCountersElement.cs
- ElementUtil.cs
- SelectedDatesCollection.cs
- DataRowView.cs
- KoreanCalendar.cs
- CaseInsensitiveHashCodeProvider.cs
- TreeSet.cs
- DashStyle.cs
- MaskDesignerDialog.cs
- NetCodeGroup.cs
- X509ChainPolicy.cs
- ImportContext.cs
- SafeSystemMetrics.cs
- ConfigUtil.cs
- PropertyManager.cs
- ErrorHandler.cs
- StylusSystemGestureEventArgs.cs
- DataGridAutomationPeer.cs
- GridViewSelectEventArgs.cs
- PerfCounters.cs
- WCFServiceClientProxyGenerator.cs
- NetworkCredential.cs
- UriTemplateCompoundPathSegment.cs
- MdImport.cs
- ProcessModelInfo.cs
- DataListGeneralPage.cs
- IdentityHolder.cs
- HebrewNumber.cs
- XmlEntityReference.cs
- InvalidPropValue.cs
- CustomErrorCollection.cs
- HttpEncoder.cs
- MatrixTransform.cs
- MenuScrollingVisibilityConverter.cs
- NavigationProgressEventArgs.cs
- DataGrid.cs
- ListViewGroupItemCollection.cs
- DataBoundLiteralControl.cs
- ObjRef.cs
- Configuration.cs
- ComboBoxRenderer.cs
- ConstrainedDataObject.cs
- AttachInfo.cs
- Delay.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- TogglePatternIdentifiers.cs
- TdsParameterSetter.cs
- StartUpEventArgs.cs
- Hashtable.cs
- WindowsSlider.cs
- XmlSerializerAssemblyAttribute.cs
- DefaultObjectMappingItemCollection.cs
- TextChange.cs
- SByteConverter.cs
- MetadataUtilsSmi.cs
- VisualCollection.cs
- Int32RectValueSerializer.cs
- TCEAdapterGenerator.cs
- WebPartUtil.cs
- QueryInterceptorAttribute.cs
- RepeatInfo.cs
- Dispatcher.cs
- CacheHelper.cs
- TimeoutValidationAttribute.cs
- IISUnsafeMethods.cs
- DbDataRecord.cs
- ConfigXmlAttribute.cs
- FixUpCollection.cs
- AliasedSlot.cs
- XmlArrayItemAttributes.cs
- SimpleHandlerFactory.cs
- ResourceReferenceKeyNotFoundException.cs
- glyphs.cs
- EntityDataSourceColumn.cs
- GestureRecognizer.cs
- XmlSerializer.cs
- SingleAnimationUsingKeyFrames.cs
- DataRow.cs
- TypeElement.cs
- ViewBox.cs
- InfoCardSchemas.cs
- MouseGestureValueSerializer.cs
- TableRowGroup.cs
- DataTable.cs
- RadioButtonRenderer.cs
- Int32Rect.cs
- DataGridViewButtonColumn.cs
- CaretElement.cs
- DbConnectionClosed.cs
- ChannelCredentials.cs
- AdapterSwitches.cs
- BodyGlyph.cs
- DataTableMapping.cs
- WorkflowTransactionService.cs