Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / GiveFeedbackEventArgs.cs / 1 / GiveFeedbackEventArgs.cs
//---------------------------------------------------------------------------- // // File: GiveFeedbackEventArgs.cs // // Copyright (C) Microsoft Corporation. All rights reserved. // // Description: GiveFeedbackEventArgs for drag-and-drop operation.// // // History: // 08/19/2004 : [....] 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
- ThicknessAnimation.cs
- Helper.cs
- StylusSystemGestureEventArgs.cs
- StreamingContext.cs
- CommandBindingCollection.cs
- DbConnectionHelper.cs
- SortAction.cs
- ObjectDataProvider.cs
- DbException.cs
- Light.cs
- SafeThemeHandle.cs
- DynamicILGenerator.cs
- CacheMemory.cs
- HotSpot.cs
- RightsManagementResourceHelper.cs
- DbConnectionPoolGroupProviderInfo.cs
- FileLevelControlBuilderAttribute.cs
- BitmapEffect.cs
- VerticalAlignConverter.cs
- OptimizedTemplateContentHelper.cs
- DynamicFilterExpression.cs
- DataGridViewRowConverter.cs
- Signature.cs
- XPathEmptyIterator.cs
- EntityDesignerBuildProvider.cs
- ListItemCollection.cs
- COM2ComponentEditor.cs
- BaseDataList.cs
- ToolStripGripRenderEventArgs.cs
- PropertyCollection.cs
- NativeMethodsCLR.cs
- ConnectionPoint.cs
- SplitContainer.cs
- PathParser.cs
- EntityClientCacheKey.cs
- MetaChildrenColumn.cs
- SqlGenerator.cs
- XamlSerializerUtil.cs
- InternalSafeNativeMethods.cs
- WebBrowserSiteBase.cs
- WSHttpBindingBaseElement.cs
- serverconfig.cs
- Double.cs
- SafeBuffer.cs
- HexParser.cs
- AttributeInfo.cs
- ConfigXmlReader.cs
- CodeFieldReferenceExpression.cs
- ExpressionBindings.cs
- ZipQueryOperator.cs
- TransformPattern.cs
- OleDbException.cs
- ListBoxItemWrapperAutomationPeer.cs
- Stylesheet.cs
- TablePatternIdentifiers.cs
- MenuItem.cs
- FormatStringEditor.cs
- CustomAttribute.cs
- DelegatedStream.cs
- RequestQueue.cs
- DataTableNewRowEvent.cs
- PerformanceCounterPermissionEntry.cs
- CodeCatchClause.cs
- CopyAction.cs
- View.cs
- SymDocumentType.cs
- TypeGeneratedEventArgs.cs
- ConfigXmlComment.cs
- DetailsViewModeEventArgs.cs
- XappLauncher.cs
- DataGridViewImageColumn.cs
- HyperLink.cs
- CloseCollectionAsyncResult.cs
- Preprocessor.cs
- DashStyle.cs
- UrlPath.cs
- PostBackOptions.cs
- TokenFactoryFactory.cs
- ConstructorArgumentAttribute.cs
- ActivityBindForm.Designer.cs
- RewritingPass.cs
- DrawingCollection.cs
- SQLInt32.cs
- DataSpaceManager.cs
- KeyboardEventArgs.cs
- _Connection.cs
- AssemblyInfo.cs
- EnglishPluralizationService.cs
- FileDialog_Vista.cs
- InputManager.cs
- MouseGestureValueSerializer.cs
- _NegoStream.cs
- TrackingWorkflowEventArgs.cs
- PropertyGeneratedEventArgs.cs
- SingleAnimationUsingKeyFrames.cs
- Rotation3DAnimationUsingKeyFrames.cs
- HuffCodec.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- TabletDevice.cs
- TimeSpanStorage.cs