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
- CustomDictionarySources.cs
- TextEncodedRawTextWriter.cs
- FormatException.cs
- LineSegment.cs
- PropertyDescriptorCollection.cs
- EventRecord.cs
- AdapterUtil.cs
- ApplicationInfo.cs
- HwndSourceKeyboardInputSite.cs
- NamedPipeChannelFactory.cs
- DataControlExtensions.cs
- XmlElementAttribute.cs
- ADConnectionHelper.cs
- SqlDelegatedTransaction.cs
- SchemaManager.cs
- HttpRequestTraceRecord.cs
- MethodAccessException.cs
- DescendentsWalker.cs
- BitmapFrame.cs
- SqlEnums.cs
- FacetChecker.cs
- XmlConvert.cs
- BindingsCollection.cs
- CallbackDebugElement.cs
- ExpressionHelper.cs
- ELinqQueryState.cs
- ConfigurationSchemaErrors.cs
- ConfigurationStrings.cs
- Debugger.cs
- FontDifferentiator.cs
- PropertyEmitterBase.cs
- externdll.cs
- ParameterCollection.cs
- FixedLineResult.cs
- AppDomainAttributes.cs
- DoubleConverter.cs
- ToolStripContentPanel.cs
- SubMenuStyle.cs
- ConnectionPointCookie.cs
- DropDownList.cs
- DataTemplate.cs
- DataIdProcessor.cs
- PrivacyNoticeBindingElement.cs
- DiscreteKeyFrames.cs
- MetadataItemSerializer.cs
- WebReferencesBuildProvider.cs
- AutoScrollExpandMessageFilter.cs
- ContainerParagraph.cs
- WpfKnownTypeInvoker.cs
- BufferedGraphics.cs
- SqlCacheDependencyDatabase.cs
- ListViewSelectEventArgs.cs
- XPathDocument.cs
- MetadataExchangeClient.cs
- SplitterPanelDesigner.cs
- PersonalizationEntry.cs
- UnsafeNativeMethods.cs
- DragCompletedEventArgs.cs
- EventWaitHandleSecurity.cs
- XmlDeclaration.cs
- Splitter.cs
- ConnectionProviderAttribute.cs
- LayoutExceptionEventArgs.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- ImportContext.cs
- DuplicateWaitObjectException.cs
- HtmlContainerControl.cs
- OrderedDictionaryStateHelper.cs
- FontUnit.cs
- Expressions.cs
- RegionIterator.cs
- Application.cs
- PageContent.cs
- XmlSchemaSimpleContentRestriction.cs
- SoapAttributeAttribute.cs
- SafeHandles.cs
- SoundPlayer.cs
- DependencyObjectCodeDomSerializer.cs
- SlotInfo.cs
- TemplatedWizardStep.cs
- BoundPropertyEntry.cs
- EpmCustomContentSerializer.cs
- HtmlInputPassword.cs
- GuidelineSet.cs
- HorizontalAlignConverter.cs
- PropertyBuilder.cs
- TcpClientChannel.cs
- ForwardPositionQuery.cs
- prompt.cs
- BinaryObjectReader.cs
- HtmlInputSubmit.cs
- ObjRef.cs
- PixelFormat.cs
- SpeechDetectedEventArgs.cs
- ManagementNamedValueCollection.cs
- BCryptHashAlgorithm.cs
- DescendentsWalkerBase.cs
- DeploymentSection.cs
- TableProviderWrapper.cs
- Win32SafeHandles.cs