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
- AspNetSynchronizationContext.cs
- EpmAttributeNameBuilder.cs
- BroadcastEventHelper.cs
- DataReaderContainer.cs
- EmissiveMaterial.cs
- RemotingServices.cs
- UnsafeCollabNativeMethods.cs
- SQLRoleProvider.cs
- SmiRecordBuffer.cs
- EncryptedXml.cs
- HttpConfigurationContext.cs
- WebScriptMetadataFormatter.cs
- HttpConfigurationContext.cs
- SettingsPropertyCollection.cs
- EmptyEnumerable.cs
- DecoderFallback.cs
- VisualCollection.cs
- Exceptions.cs
- FieldReference.cs
- DependencyObjectPropertyDescriptor.cs
- AttributeProviderAttribute.cs
- MachinePropertyVariants.cs
- CookielessHelper.cs
- cookiecollection.cs
- AxisAngleRotation3D.cs
- AttributeCollection.cs
- StyleCollection.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- Screen.cs
- XmlAttribute.cs
- SurrogateSelector.cs
- MsmqActivation.cs
- ToolStripOverflowButton.cs
- VirtualizedCellInfoCollection.cs
- RecognizedPhrase.cs
- CategoryNameCollection.cs
- GlobalizationAssembly.cs
- RemotingService.cs
- IPAddress.cs
- BaseDataBoundControlDesigner.cs
- LinkClickEvent.cs
- WebPartMenuStyle.cs
- UIElementParagraph.cs
- ReflectEventDescriptor.cs
- WindowsFormsEditorServiceHelper.cs
- BinaryWriter.cs
- ContextMenuAutomationPeer.cs
- SHA256.cs
- DelimitedListTraceListener.cs
- ValidationRule.cs
- EntityParameterCollection.cs
- CodeNamespaceImportCollection.cs
- SqlPersonalizationProvider.cs
- DocumentViewerAutomationPeer.cs
- PerformanceCountersElement.cs
- listitem.cs
- Itemizer.cs
- OleDbDataReader.cs
- ConditionalDesigner.cs
- DbgCompiler.cs
- SafeEventLogWriteHandle.cs
- DataListItem.cs
- PartialList.cs
- FocusChangedEventArgs.cs
- InfoCardTrace.cs
- DecimalStorage.cs
- ResourceDictionaryCollection.cs
- HttpApplication.cs
- ThicknessKeyFrameCollection.cs
- cookiecollection.cs
- ResourcesGenerator.cs
- BaseInfoTable.cs
- TreeBuilder.cs
- AlternateViewCollection.cs
- ViewManager.cs
- HealthMonitoringSectionHelper.cs
- RotationValidation.cs
- XPathQueryGenerator.cs
- GradientBrush.cs
- RSAPKCS1SignatureFormatter.cs
- EventListener.cs
- SecurityHelper.cs
- UIElementCollection.cs
- HtmlFormParameterReader.cs
- FamilyTypefaceCollection.cs
- HtmlTableRowCollection.cs
- ValueUnavailableException.cs
- XmlQueryOutput.cs
- XMLSchema.cs
- MetadataItem_Static.cs
- WindowsRegion.cs
- Parser.cs
- WSHttpTransportSecurityElement.cs
- DateTimeFormat.cs
- AutomationElementIdentifiers.cs
- XmlWhitespace.cs
- EntityDataSourceStatementEditorForm.cs
- TransactionFlowBindingElement.cs
- PageSettings.cs
- ExpressionStringBuilder.cs