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
- TreeViewItemAutomationPeer.cs
- TextTreeUndoUnit.cs
- StorageAssociationSetMapping.cs
- TreeViewEvent.cs
- Validator.cs
- SafeProcessHandle.cs
- WpfKnownTypeInvoker.cs
- SystemIcmpV4Statistics.cs
- GridViewCommandEventArgs.cs
- MemberHolder.cs
- DiscoveryExceptionDictionary.cs
- PowerStatus.cs
- Track.cs
- AttachedAnnotationChangedEventArgs.cs
- SettingsSection.cs
- SyntaxCheck.cs
- wmiprovider.cs
- PinnedBufferMemoryStream.cs
- DiscoveryUtility.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ShaperBuffers.cs
- _TLSstream.cs
- StringAnimationUsingKeyFrames.cs
- MD5CryptoServiceProvider.cs
- ProcessThreadCollection.cs
- SqlClientMetaDataCollectionNames.cs
- ProfilePropertyNameValidator.cs
- EntityDataSourceContextDisposingEventArgs.cs
- _NegoState.cs
- Compilation.cs
- MatrixIndependentAnimationStorage.cs
- SystemIPv6InterfaceProperties.cs
- BidOverLoads.cs
- ToolBarTray.cs
- TextElementEditingBehaviorAttribute.cs
- StatusBarItemAutomationPeer.cs
- CellTreeNode.cs
- ToolboxDataAttribute.cs
- UmAlQuraCalendar.cs
- SafeEventLogWriteHandle.cs
- MailSettingsSection.cs
- Win32MouseDevice.cs
- JoinSymbol.cs
- HtmlButton.cs
- TabItemWrapperAutomationPeer.cs
- EntitySetDataBindingList.cs
- Highlights.cs
- ImageFormatConverter.cs
- InstalledFontCollection.cs
- EFAssociationProvider.cs
- FigureParaClient.cs
- MiniParameterInfo.cs
- MenuBase.cs
- Line.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- CommandValueSerializer.cs
- DataGridPageChangedEventArgs.cs
- CheckBox.cs
- TextSelectionHighlightLayer.cs
- DocumentViewerAutomationPeer.cs
- CLSCompliantAttribute.cs
- Matrix3DConverter.cs
- mil_commands.cs
- CngAlgorithm.cs
- SystemColors.cs
- DefaultValueTypeConverter.cs
- InitializationEventAttribute.cs
- ParseHttpDate.cs
- Buffer.cs
- OperationCanceledException.cs
- StylusShape.cs
- PageOutputColor.cs
- InternalEnumValidator.cs
- RoleManagerSection.cs
- Pair.cs
- WebDisplayNameAttribute.cs
- BitmapEffectvisualstate.cs
- precedingquery.cs
- SqlDependencyListener.cs
- ExclusiveTcpTransportManager.cs
- LazyTextWriterCreator.cs
- MessageFormatterConverter.cs
- PersonalizationDictionary.cs
- RowToFieldTransformer.cs
- ManagedFilter.cs
- InheritanceRules.cs
- JsonEnumDataContract.cs
- QuestionEventArgs.cs
- MLangCodePageEncoding.cs
- SettingsContext.cs
- EditorReuseAttribute.cs
- FloaterParaClient.cs
- DataSvcMapFile.cs
- SqlWriter.cs
- HttpChannelHelpers.cs
- TableLayoutSettingsTypeConverter.cs
- VariableQuery.cs
- ChildDocumentBlock.cs
- InkPresenter.cs
- XmlDataLoader.cs