Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / GiveFeedbackEventArgs.cs / 1305600 / GiveFeedbackEventArgs.cs
//----------------------------------------------------------------------------
//
// File: GiveFeedbackEventArgs.cs
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// Description: GiveFeedbackEventArgs for drag-and-drop operation.//
//
// History:
// 08/19/2004 : sangilj Created
//
//---------------------------------------------------------------------------
using System;
using System.Diagnostics;
namespace System.Windows
{
///
/// The GiveFeedbackEventArgs class represents a type of RoutedEventArgs that
/// are relevant to GiveFeedback.
///
public sealed class GiveFeedbackEventArgs : RoutedEventArgs
{
//-----------------------------------------------------
//
// Constructors
//
//-----------------------------------------------------
#region Constructors
///
/// Initializes a new instance of the GiveFeedbackEventArgs class.
///
///
/// The effect of the drag operation.
///
///
/// Use the default cursors.
///
internal GiveFeedbackEventArgs(DragDropEffects effects, bool useDefaultCursors)
{
if (!DragDrop.IsValidDragDropEffects(effects))
{
Debug.Assert(false, "Invalid effects");
}
this._effects = effects;
this._useDefaultCursors = useDefaultCursors;
}
#endregion Constructors
//------------------------------------------------------
//
// Public Methods
//
//-----------------------------------------------------
#region Public Methods
///
/// The effects of drag operation
///
public DragDropEffects Effects
{
get
{
return _effects;
}
}
///
/// Use the default cursors.
///
public bool UseDefaultCursors
{
get
{
return _useDefaultCursors;
}
set
{
_useDefaultCursors = value;
}
}
#endregion Public Methods
#region Protected Methods
//------------------------------------------------------
//
// Protected Methods
//
//------------------------------------------------------
///
/// 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)
{
GiveFeedbackEventHandler handler = (GiveFeedbackEventHandler)genericHandler;
handler(genericTarget, this);
}
#endregion Protected Methods
//-----------------------------------------------------
//
// Private Fields
//
//------------------------------------------------------
#region Private Fields
private DragDropEffects _effects;
private bool _useDefaultCursors;
#endregion Private Fields
}
}
// 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
- DBBindings.cs
- RegexRunner.cs
- TreeViewImageKeyConverter.cs
- DiffuseMaterial.cs
- Win32SafeHandles.cs
- ScaleTransform.cs
- LicenseException.cs
- DesignerOptionService.cs
- NetNamedPipeBindingCollectionElement.cs
- FileDialog.cs
- CssClassPropertyAttribute.cs
- RequestTimeoutManager.cs
- EntityStoreSchemaGenerator.cs
- FrameworkElementFactoryMarkupObject.cs
- TraceLevelStore.cs
- UserInitiatedRoutedEventPermission.cs
- Error.cs
- ConfigXmlComment.cs
- SiteMapHierarchicalDataSourceView.cs
- MediaContext.cs
- TableDetailsRow.cs
- Interlocked.cs
- PrimitiveDataContract.cs
- MsdtcWrapper.cs
- WebPartExportVerb.cs
- FixedSOMSemanticBox.cs
- NativeMethods.cs
- WindowsContainer.cs
- WebScriptMetadataMessageEncodingBindingElement.cs
- AdornerHitTestResult.cs
- ReceiveActivityDesigner.cs
- ObjectDataSourceStatusEventArgs.cs
- TypeCollectionDesigner.xaml.cs
- Expander.cs
- ExpressionWriter.cs
- DurableEnlistmentState.cs
- ScriptRegistrationManager.cs
- XmlExpressionDumper.cs
- MemoryStream.cs
- NamespaceInfo.cs
- SerializationEventsCache.cs
- InkCanvasSelection.cs
- StringAttributeCollection.cs
- PenContexts.cs
- ObjectDataSourceStatusEventArgs.cs
- Int32.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- EncoderExceptionFallback.cs
- ConnectionInterfaceCollection.cs
- ParameterExpression.cs
- CounterCreationDataCollection.cs
- KnownTypesHelper.cs
- Main.cs
- BuilderPropertyEntry.cs
- LineServices.cs
- DataBindingList.cs
- DataTemplate.cs
- PropertyToken.cs
- Quaternion.cs
- ReadOnlyTernaryTree.cs
- ObjectDisposedException.cs
- PropertyDescriptorComparer.cs
- BaseComponentEditor.cs
- ProcessInputEventArgs.cs
- EventSinkHelperWriter.cs
- SystemWebCachingSectionGroup.cs
- RectConverter.cs
- AuthenticationServiceManager.cs
- WmlPhoneCallAdapter.cs
- CompiledRegexRunner.cs
- DotExpr.cs
- ETagAttribute.cs
- SecureConversationServiceElement.cs
- ZipIOLocalFileDataDescriptor.cs
- ElapsedEventArgs.cs
- ImpersonateTokenRef.cs
- EncodingTable.cs
- JsonServiceDocumentSerializer.cs
- GatewayIPAddressInformationCollection.cs
- VisualStyleTypesAndProperties.cs
- DynamicPropertyHolder.cs
- XmlSchemaSimpleTypeUnion.cs
- SymLanguageVendor.cs
- FixedSOMPage.cs
- URL.cs
- CustomError.cs
- GreenMethods.cs
- Monitor.cs
- SingleBodyParameterMessageFormatter.cs
- XmlHierarchicalDataSourceView.cs
- ParseElementCollection.cs
- DtdParser.cs
- ClientUrlResolverWrapper.cs
- ControlPager.cs
- DynamicActivityTypeDescriptor.cs
- AccessDataSourceWizardForm.cs
- RtfNavigator.cs
- WriteableBitmap.cs
- XmlQuerySequence.cs
- ConfigurationStrings.cs