Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ErrorFormatter.cs
- EventMappingSettingsCollection.cs
- DesignerOptionService.cs
- EventMappingSettingsCollection.cs
- OpenTypeMethods.cs
- EntityContainerAssociationSet.cs
- MenuItemStyle.cs
- BooleanAnimationUsingKeyFrames.cs
- FormClosedEvent.cs
- DateTimeStorage.cs
- NotifyParentPropertyAttribute.cs
- Popup.cs
- XmlSchemaElement.cs
- ListenerChannelContext.cs
- TextTrailingCharacterEllipsis.cs
- RemoteWebConfigurationHostServer.cs
- ComponentCommands.cs
- DynamicDataRouteHandler.cs
- RepeaterItem.cs
- METAHEADER.cs
- VerticalAlignConverter.cs
- SharedDp.cs
- WebPartTracker.cs
- RulePatternOps.cs
- MenuItemBindingCollection.cs
- KeyFrames.cs
- MediaElementAutomationPeer.cs
- PropertyGridCommands.cs
- ChildDocumentBlock.cs
- SafeNativeMethods.cs
- RawStylusInputCustomData.cs
- WebHostUnsafeNativeMethods.cs
- XPathNode.cs
- Label.cs
- ResizingMessageFilter.cs
- DelegateSerializationHolder.cs
- Byte.cs
- StreamGeometryContext.cs
- SmiEventSink_Default.cs
- IntellisenseTextBox.designer.cs
- Selector.cs
- BindingExpressionUncommonField.cs
- AliasGenerator.cs
- TimeSpanValidator.cs
- ReversePositionQuery.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- DateTimeFormat.cs
- ComponentResourceKey.cs
- DiffuseMaterial.cs
- SingleStorage.cs
- Compilation.cs
- HttpFileCollection.cs
- XamlTypeMapper.cs
- RequestQueue.cs
- OleDbParameterCollection.cs
- OwnerDrawPropertyBag.cs
- PropertyTabAttribute.cs
- CacheOutputQuery.cs
- SynchronizedPool.cs
- BitmapEffectDrawingContent.cs
- UnsafeNativeMethods.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- TextServicesCompartment.cs
- StyleCollectionEditor.cs
- validationstate.cs
- GridViewItemAutomationPeer.cs
- CodeNamespace.cs
- DynamicDocumentPaginator.cs
- CompatibleIComparer.cs
- SchemaCollectionCompiler.cs
- IDispatchConstantAttribute.cs
- ModelTreeEnumerator.cs
- InvalidCastException.cs
- LoadItemsEventArgs.cs
- __Filters.cs
- RSAPKCS1SignatureFormatter.cs
- XmlnsDefinitionAttribute.cs
- Activity.cs
- SSmlParser.cs
- SizeFConverter.cs
- RestHandlerFactory.cs
- TransactionInformation.cs
- HttpInputStream.cs
- MainMenu.cs
- Not.cs
- MessagePropertyDescriptionCollection.cs
- AuthenticateEventArgs.cs
- HttpConfigurationSystem.cs
- PeerNearMe.cs
- BindableTemplateBuilder.cs
- WorkflowDesignerMessageFilter.cs
- ComboBox.cs
- DoubleUtil.cs
- MediaPlayer.cs
- TdsParserStateObject.cs
- DocumentSequence.cs
- WsdlInspector.cs
- ToolBarOverflowPanel.cs
- XmlValidatingReaderImpl.cs
- ServicePoint.cs