Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // // 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
- IIS7WorkerRequest.cs
- __ConsoleStream.cs
- ClientConvert.cs
- OleDbCommandBuilder.cs
- ServiceNameCollection.cs
- GridToolTip.cs
- CngAlgorithmGroup.cs
- PolyLineSegment.cs
- ClientConfigurationHost.cs
- CriticalExceptions.cs
- GlyphingCache.cs
- TransformGroup.cs
- CellIdBoolean.cs
- TextPattern.cs
- Convert.cs
- MsdtcClusterUtils.cs
- Vector3DAnimationBase.cs
- WebSysDescriptionAttribute.cs
- ToolStripPanelRenderEventArgs.cs
- TransformerInfoCollection.cs
- PropertyReferenceExtension.cs
- SpellerError.cs
- SmtpDigestAuthenticationModule.cs
- EventSourceCreationData.cs
- AspCompat.cs
- DnsPermission.cs
- ToolStripSplitStackLayout.cs
- ConnectionStringsExpressionBuilder.cs
- WebPartZoneCollection.cs
- ConfigurationManagerHelperFactory.cs
- FormView.cs
- HttpContext.cs
- FrameworkElementFactoryMarkupObject.cs
- CopyOnWriteList.cs
- OrderedDictionary.cs
- PageMediaSize.cs
- RadioButtonList.cs
- MarkupCompilePass1.cs
- XPathCompileException.cs
- DataGridViewDataConnection.cs
- ProgressBar.cs
- XmlDataSourceNodeDescriptor.cs
- ErrorHandler.cs
- SizeIndependentAnimationStorage.cs
- SafeNativeMethodsOther.cs
- XmlBinaryWriterSession.cs
- DataRecordInfo.cs
- WebPartConnection.cs
- Encoding.cs
- WindowsTreeView.cs
- EnvelopedPkcs7.cs
- WindowsPrincipal.cs
- GeometryDrawing.cs
- LabelLiteral.cs
- KeyedHashAlgorithm.cs
- XmlnsCompatibleWithAttribute.cs
- SafeViewOfFileHandle.cs
- SortAction.cs
- DbMetaDataFactory.cs
- EntryPointNotFoundException.cs
- ToolBarPanel.cs
- Int16AnimationBase.cs
- UserControlDesigner.cs
- FormsAuthenticationTicket.cs
- MsmqIntegrationBindingElement.cs
- TextLineBreak.cs
- EventsTab.cs
- ConfigXmlText.cs
- Directory.cs
- TokenBasedSet.cs
- ComponentSerializationService.cs
- ObjectStateEntry.cs
- PathGeometry.cs
- HttpApplication.cs
- InputBuffer.cs
- ArgumentNullException.cs
- Size3D.cs
- AttributeQuery.cs
- HotCommands.cs
- DBConnection.cs
- UnauthorizedWebPart.cs
- TraceInternal.cs
- InheritedPropertyChangedEventArgs.cs
- HttpRequestCacheValidator.cs
- Buffer.cs
- JsonQNameDataContract.cs
- ClientApiGenerator.cs
- TablePatternIdentifiers.cs
- UserMapPath.cs
- XmlTextReaderImpl.cs
- CheckPair.cs
- CloseSequence.cs
- GridViewColumnCollectionChangedEventArgs.cs
- ServiceMemoryGates.cs
- CommonProperties.cs
- DefaultPropertyAttribute.cs
- SamlAction.cs
- DataTemplate.cs
- CellConstantDomain.cs
- PeerTransportListenAddressValidator.cs