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
- BinarySerializer.cs
- SQLInt16Storage.cs
- DomainConstraint.cs
- DetailsView.cs
- ObjectListComponentEditor.cs
- DelegatingTypeDescriptionProvider.cs
- AppDomainShutdownMonitor.cs
- LineSegment.cs
- QueryExecutionOption.cs
- XXXInfos.cs
- StylusTip.cs
- XPathAxisIterator.cs
- DataListComponentEditor.cs
- EndpointDiscoveryBehavior.cs
- FixedSOMGroup.cs
- ListViewCommandEventArgs.cs
- XmlSchemaFacet.cs
- EntityDataReader.cs
- OrderedDictionaryStateHelper.cs
- CompilationLock.cs
- EventLogPermission.cs
- MeasureItemEvent.cs
- AssociationProvider.cs
- TextDocumentView.cs
- CombinedGeometry.cs
- MemberHolder.cs
- DataTableReaderListener.cs
- DataFormats.cs
- Processor.cs
- Attachment.cs
- loginstatus.cs
- safelinkcollection.cs
- CompilerCollection.cs
- BufferBuilder.cs
- ArgumentValue.cs
- AdvancedBindingEditor.cs
- EpmContentDeSerializerBase.cs
- DbQueryCommandTree.cs
- ADMembershipUser.cs
- DataBinder.cs
- XmlILTrace.cs
- DependencyProperty.cs
- SoapInteropTypes.cs
- DataServiceProcessingPipelineEventArgs.cs
- PointAnimationUsingPath.cs
- ColorTransformHelper.cs
- WindowsTab.cs
- TextEndOfLine.cs
- WmpBitmapDecoder.cs
- WindowProviderWrapper.cs
- KnownBoxes.cs
- TypeElement.cs
- Rules.cs
- SynchronizedPool.cs
- ObjectStorage.cs
- AssemblySettingAttributes.cs
- EdmComplexPropertyAttribute.cs
- DNS.cs
- HttpCachePolicy.cs
- FlowLayoutSettings.cs
- CookieProtection.cs
- ClaimTypeRequirement.cs
- DescendentsWalker.cs
- DataSourceView.cs
- RevocationPoint.cs
- GuidelineSet.cs
- PartManifestEntry.cs
- AutomationProperty.cs
- Request.cs
- ListBase.cs
- EntityDataSourceContextDisposingEventArgs.cs
- DefaultTextStore.cs
- MatrixAnimationUsingKeyFrames.cs
- SmiContext.cs
- StreamWithDictionary.cs
- XmlReflectionImporter.cs
- SocketStream.cs
- XamlWrappingReader.cs
- XmlILModule.cs
- SqlBooleanizer.cs
- SendKeys.cs
- DrawingImage.cs
- DataGridViewColumnHeaderCell.cs
- Utils.cs
- DataGridHelper.cs
- DataGridViewTextBoxColumn.cs
- PreviewPrintController.cs
- ParserContext.cs
- _SingleItemRequestCache.cs
- HttpRuntime.cs
- HierarchicalDataSourceControl.cs
- RouteParametersHelper.cs
- SelectingProviderEventArgs.cs
- MetadataElement.cs
- EntityViewGenerationAttribute.cs
- ProviderCollection.cs
- KeyEvent.cs
- MediaPlayerState.cs
- SectionXmlInfo.cs
- PersonalizationState.cs