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
- PageBreakRecord.cs
- FtpCachePolicyElement.cs
- KeyPullup.cs
- EmissiveMaterial.cs
- GuidelineSet.cs
- SiteMapDataSourceView.cs
- LoadGrammarCompletedEventArgs.cs
- ServiceObjectContainer.cs
- MissingMemberException.cs
- PseudoWebRequest.cs
- ConsoleEntryPoint.cs
- CorrelationService.cs
- ReferencedAssembly.cs
- COM2ComponentEditor.cs
- ArrayList.cs
- CodeConditionStatement.cs
- DirectionalAction.cs
- FileUtil.cs
- ManipulationInertiaStartingEventArgs.cs
- IDispatchConstantAttribute.cs
- DataRelationCollection.cs
- Behavior.cs
- SafeEventLogReadHandle.cs
- PingReply.cs
- MdiWindowListItemConverter.cs
- CodeCatchClauseCollection.cs
- ThemeDirectoryCompiler.cs
- ActivityInstanceReference.cs
- PageClientProxyGenerator.cs
- PenThreadWorker.cs
- XslException.cs
- ScrollViewer.cs
- TripleDESCryptoServiceProvider.cs
- XsltContext.cs
- DocumentAutomationPeer.cs
- DesignerProperties.cs
- ColorPalette.cs
- ConstrainedDataObject.cs
- XmlSchemaChoice.cs
- SecurityException.cs
- ADConnectionHelper.cs
- CompilerError.cs
- SyncOperationState.cs
- dtdvalidator.cs
- LongAverageAggregationOperator.cs
- VariableValue.cs
- OperatorExpressions.cs
- TextRunTypographyProperties.cs
- DiagnosticsConfiguration.cs
- TextEditorTyping.cs
- PersistChildrenAttribute.cs
- TableLayoutPanelCellPosition.cs
- _NegotiateClient.cs
- DataContractAttribute.cs
- VectorConverter.cs
- PointF.cs
- GradientStop.cs
- ModelItemImpl.cs
- XamlPointCollectionSerializer.cs
- TimeSpanValidatorAttribute.cs
- SchemaNames.cs
- ComboBoxItem.cs
- PreservationFileWriter.cs
- ErrorTolerantObjectWriter.cs
- TextViewBase.cs
- printdlgexmarshaler.cs
- SkipStoryboardToFill.cs
- PolicyManager.cs
- ObjectListSelectEventArgs.cs
- GridItemPattern.cs
- TraceUtility.cs
- FixedPageProcessor.cs
- dsa.cs
- MobileCapabilities.cs
- X509Certificate.cs
- TypeLibConverter.cs
- Point.cs
- OnOperation.cs
- AnnouncementEndpointElement.cs
- BindingNavigator.cs
- NameValuePair.cs
- processwaithandle.cs
- compensatingcollection.cs
- HandlerBase.cs
- M3DUtil.cs
- Point3DCollectionConverter.cs
- IncrementalCompileAnalyzer.cs
- XmlSchemaSequence.cs
- _NetRes.cs
- SqlBulkCopy.cs
- SpecialTypeDataContract.cs
- TransportationConfigurationTypeInstallComponent.cs
- DataGridCaption.cs
- StaticDataManager.cs
- WindowsListViewItem.cs
- URLEditor.cs
- Literal.cs
- GridViewUpdateEventArgs.cs
- FixedLineResult.cs
- AmbientLight.cs