Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- HwndHostAutomationPeer.cs
- RowVisual.cs
- ScriptControlManager.cs
- ParameterElementCollection.cs
- Cloud.cs
- AuthorizationRule.cs
- TextTreeTextNode.cs
- Switch.cs
- SqlWriter.cs
- GetWinFXPath.cs
- WebPartVerbsEventArgs.cs
- JoinCqlBlock.cs
- ListViewPagedDataSource.cs
- ItemMap.cs
- ResourceManagerWrapper.cs
- TimeStampChecker.cs
- OutputCacheSection.cs
- SoapInteropTypes.cs
- MenuBase.cs
- SqlProvider.cs
- FullTextBreakpoint.cs
- GridViewRow.cs
- CheckBoxAutomationPeer.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- GroupBox.cs
- StorageConditionPropertyMapping.cs
- cookie.cs
- EtwTrace.cs
- SqlDependencyUtils.cs
- Glyph.cs
- ObjectPersistData.cs
- AssemblyEvidenceFactory.cs
- EntityCommand.cs
- SqlDataSourceStatusEventArgs.cs
- DistributedTransactionPermission.cs
- MULTI_QI.cs
- QuaternionConverter.cs
- XpsS0ValidatingLoader.cs
- TranslateTransform.cs
- TabletDeviceInfo.cs
- RuntimeCompatibilityAttribute.cs
- MachineKeySection.cs
- TransactionCache.cs
- TextBlockAutomationPeer.cs
- DrawingVisualDrawingContext.cs
- ObjectDataSourceSelectingEventArgs.cs
- PropertyEmitterBase.cs
- Accessible.cs
- CmsInterop.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- EntityDataSourceWrapper.cs
- UrlAuthFailedErrorFormatter.cs
- AttributeUsageAttribute.cs
- HelpEvent.cs
- DynamicResourceExtensionConverter.cs
- glyphs.cs
- LoginCancelEventArgs.cs
- UriPrefixTable.cs
- BookmarkUndoUnit.cs
- RegexWorker.cs
- SBCSCodePageEncoding.cs
- TextDecorationLocationValidation.cs
- FileVersionInfo.cs
- SHA1Managed.cs
- Vector3DAnimationUsingKeyFrames.cs
- DataGridViewRowsRemovedEventArgs.cs
- WebChannelFactory.cs
- XmlRawWriterWrapper.cs
- GC.cs
- SecurityResources.cs
- StringDictionary.cs
- FileSecurity.cs
- _LocalDataStore.cs
- QilValidationVisitor.cs
- TemplateBindingExpressionConverter.cs
- WindowsRegion.cs
- ConsumerConnectionPoint.cs
- ParameterModifier.cs
- NativeMsmqMessage.cs
- SerializerProvider.cs
- BitmapEffectState.cs
- WSHttpSecurity.cs
- Pointer.cs
- RightNameExpirationInfoPair.cs
- PageTextBox.cs
- CodeGenerator.cs
- SafeThemeHandle.cs
- CollectionViewSource.cs
- BufferedReadStream.cs
- ProfilePropertyNameValidator.cs
- RSATokenProvider.cs
- ModifierKeysValueSerializer.cs
- CreatingCookieEventArgs.cs
- ADConnectionHelper.cs
- DbParameterCollection.cs
- TreeViewImageKeyConverter.cs
- __Filters.cs
- TranslateTransform3D.cs
- RootProfilePropertySettingsCollection.cs
- ILGenerator.cs