Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / 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 : 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
- AutoGeneratedFieldProperties.cs
- SendKeys.cs
- Range.cs
- MeasurementDCInfo.cs
- MSAANativeProvider.cs
- WebConfigurationManager.cs
- XPathNavigatorException.cs
- ConstNode.cs
- StoragePropertyMapping.cs
- ScrollBarRenderer.cs
- TextAnchor.cs
- StreamUpdate.cs
- DependencyPropertyDescriptor.cs
- ParserExtension.cs
- SmiRecordBuffer.cs
- RequiredAttributeAttribute.cs
- Transactions.cs
- RotateTransform3D.cs
- GroupJoinQueryOperator.cs
- MetafileHeaderWmf.cs
- InstanceDescriptor.cs
- ChtmlCommandAdapter.cs
- TableLayoutPanelDesigner.cs
- CodeDOMUtility.cs
- ComponentEditorForm.cs
- XmlNamedNodeMap.cs
- StateMachineSubscription.cs
- Vector.cs
- EndEvent.cs
- RuleValidation.cs
- PingOptions.cs
- FileClassifier.cs
- Models.cs
- ValidationError.cs
- DockProviderWrapper.cs
- DetailsViewPagerRow.cs
- PrintPreviewGraphics.cs
- HandledMouseEvent.cs
- TdsEnums.cs
- Header.cs
- MDIControlStrip.cs
- PageParser.cs
- EdgeModeValidation.cs
- BitVector32.cs
- RadioButtonList.cs
- CodeDirectionExpression.cs
- SecurityPolicySection.cs
- TemplatedAdorner.cs
- MemberDomainMap.cs
- DataKeyCollection.cs
- UserControlCodeDomTreeGenerator.cs
- FormParameter.cs
- TextSpan.cs
- FormViewUpdatedEventArgs.cs
- CalendarButton.cs
- DisableDpiAwarenessAttribute.cs
- DependencyPropertyAttribute.cs
- GorillaCodec.cs
- AdPostCacheSubstitution.cs
- NullRuntimeConfig.cs
- EntityViewGenerationAttribute.cs
- StyleBamlTreeBuilder.cs
- CodeConstructor.cs
- SqlConnectionString.cs
- CustomValidator.cs
- BasicHttpBindingCollectionElement.cs
- ProviderCommandInfoUtils.cs
- WebPermission.cs
- SoapEnumAttribute.cs
- PackUriHelper.cs
- TagPrefixAttribute.cs
- WebBrowser.cs
- ShutDownListener.cs
- ThreadInterruptedException.cs
- ColumnTypeConverter.cs
- GrammarBuilderRuleRef.cs
- PixelFormats.cs
- _ListenerRequestStream.cs
- WebContext.cs
- RelationalExpressions.cs
- DeploymentSectionCache.cs
- StringWriter.cs
- CodeStatement.cs
- RuntimeCompatibilityAttribute.cs
- IsolatedStoragePermission.cs
- WebPartCatalogAddVerb.cs
- TextPenaltyModule.cs
- PersonalizationProviderHelper.cs
- InfoCardArgumentException.cs
- ChangePassword.cs
- ToolStripGrip.cs
- Panel.cs
- ProcessHostConfigUtils.cs
- LongValidator.cs
- AppDomainUnloadedException.cs
- DbXmlEnabledProviderManifest.cs
- ExpressionCopier.cs
- ZipFileInfoCollection.cs
- TheQuery.cs
- XsdDateTime.cs