Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- RegexWorker.cs
- ExtensionFile.cs
- TextPenaltyModule.cs
- XmlEncodedRawTextWriter.cs
- ReflectPropertyDescriptor.cs
- WSFederationHttpBindingElement.cs
- SingleAnimation.cs
- HttpProfileGroupBase.cs
- RequestCache.cs
- ProgressChangedEventArgs.cs
- LongTypeConverter.cs
- AttachedPropertyBrowsableAttribute.cs
- TextServicesCompartmentContext.cs
- ExpressionHelper.cs
- EventLevel.cs
- UnsettableComboBox.cs
- EnumDataContract.cs
- InfoCardXmlSerializer.cs
- SvcFileManager.cs
- ProcessModuleCollection.cs
- WhitespaceReader.cs
- Command.cs
- XmlSerializerAssemblyAttribute.cs
- TextParagraphCache.cs
- ADRoleFactory.cs
- PersonalizablePropertyEntry.cs
- FacetDescription.cs
- CompensatableTransactionScopeActivityDesigner.cs
- AsyncStreamReader.cs
- DataTemplateKey.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- Vector3DCollectionConverter.cs
- InheritanceAttribute.cs
- InstanceData.cs
- CapabilitiesPattern.cs
- LeftCellWrapper.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- ExtendedPropertyCollection.cs
- HtmlInputText.cs
- KeySplineConverter.cs
- dsa.cs
- InputMethod.cs
- GroupBox.cs
- ConfigUtil.cs
- DataTableCollection.cs
- PrtCap_Base.cs
- DataFieldConverter.cs
- UnregisterInfo.cs
- ControlBindingsCollection.cs
- ArgumentValueSerializer.cs
- ZipIORawDataFileBlock.cs
- StringResourceManager.cs
- PocoPropertyAccessorStrategy.cs
- RoleServiceManager.cs
- ParameterModifier.cs
- StrokeCollection2.cs
- MediaEntryAttribute.cs
- TreeNodeConverter.cs
- HighlightVisual.cs
- HiddenFieldDesigner.cs
- MarkupWriter.cs
- DecoderExceptionFallback.cs
- AspCompat.cs
- BamlStream.cs
- TimelineGroup.cs
- SqlVersion.cs
- DbConnectionPoolGroup.cs
- xsdvalidator.cs
- PolicyUnit.cs
- IntSecurity.cs
- FlagPanel.cs
- MediaTimeline.cs
- HijriCalendar.cs
- SqlPersonalizationProvider.cs
- FlowDocumentReader.cs
- SBCSCodePageEncoding.cs
- PatternMatcher.cs
- TextTabProperties.cs
- DBAsyncResult.cs
- SoapCodeExporter.cs
- TextContainer.cs
- SizeF.cs
- MetadataItem_Static.cs
- BitmapEffectDrawing.cs
- TimeBoundedCache.cs
- MsmqIntegrationBindingCollectionElement.cs
- ValueUtilsSmi.cs
- FontUnit.cs
- XPathMultyIterator.cs
- CompoundFileIOPermission.cs
- DataGridPageChangedEventArgs.cs
- SqlCharStream.cs
- DropDownButton.cs
- WindowsHyperlink.cs
- Application.cs
- ConsumerConnectionPointCollection.cs
- PngBitmapEncoder.cs
- DataGridViewColumnHeaderCell.cs
- NgenServicingAttributes.cs
- ButtonStandardAdapter.cs