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
- DropSource.cs
- BasicExpressionVisitor.cs
- AssemblyCache.cs
- OptimizerPatterns.cs
- TraceSwitch.cs
- PrinterResolution.cs
- Array.cs
- ReadingWritingEntityEventArgs.cs
- QilPatternVisitor.cs
- RichTextBox.cs
- TextStore.cs
- ArrayElementGridEntry.cs
- SafeCancelMibChangeNotify.cs
- MoveSizeWinEventHandler.cs
- SystemIPGlobalProperties.cs
- SmiMetaDataProperty.cs
- BaseCollection.cs
- SoapFaultCodes.cs
- TextPatternIdentifiers.cs
- EdmScalarPropertyAttribute.cs
- CodeNamespaceImport.cs
- DBCSCodePageEncoding.cs
- XmlIgnoreAttribute.cs
- IList.cs
- FilterException.cs
- HandleCollector.cs
- Grid.cs
- WebPartManager.cs
- ValueProviderWrapper.cs
- IsolatedStorageSecurityState.cs
- DataGridViewColumn.cs
- BamlReader.cs
- PaintEvent.cs
- CodePropertyReferenceExpression.cs
- ServiceModelPerformanceCounters.cs
- BuildManager.cs
- WindowsRichEditRange.cs
- WaveHeader.cs
- DynamicRendererThreadManager.cs
- Base64Encoder.cs
- StructuredType.cs
- PolyQuadraticBezierSegment.cs
- BaseDataListComponentEditor.cs
- AnimationClockResource.cs
- TextRunTypographyProperties.cs
- RequestCacheValidator.cs
- ResourceDictionary.cs
- XPathCompiler.cs
- XmlUtf8RawTextWriter.cs
- OutOfMemoryException.cs
- UnsafeNativeMethods.cs
- MergeFailedEvent.cs
- DownloadProgressEventArgs.cs
- DocumentCollection.cs
- CompareInfo.cs
- EmptyEnumerator.cs
- WebConfigurationManager.cs
- SqlClientFactory.cs
- CodeFieldReferenceExpression.cs
- TextProviderWrapper.cs
- TypeInitializationException.cs
- JournalNavigationScope.cs
- Matrix3D.cs
- BamlLocalizationDictionary.cs
- FormattedText.cs
- RotateTransform3D.cs
- Triplet.cs
- InternalPolicyElement.cs
- TextDecoration.cs
- ProcessModelInfo.cs
- RelationshipFixer.cs
- Update.cs
- HatchBrush.cs
- XmlAttributeProperties.cs
- QilReplaceVisitor.cs
- StringStorage.cs
- WebPartEventArgs.cs
- TextRunTypographyProperties.cs
- PermissionToken.cs
- ApplicationManager.cs
- List.cs
- LocalizationParserHooks.cs
- XmlSchemaAll.cs
- MobileComponentEditorPage.cs
- StylusDownEventArgs.cs
- MessageFilter.cs
- NetMsmqBindingCollectionElement.cs
- SoapTypeAttribute.cs
- XmlSchemaSimpleContentExtension.cs
- BevelBitmapEffect.cs
- XmlSchemaSubstitutionGroup.cs
- RegexFCD.cs
- SafePEFileHandle.cs
- SessionEndingEventArgs.cs
- followingsibling.cs
- IntegerFacetDescriptionElement.cs
- BinaryObjectInfo.cs
- Query.cs
- BitmapEffect.cs
- Vector3DCollectionConverter.cs