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
- WindowsScroll.cs
- ClientCultureInfo.cs
- Operator.cs
- MobileControlDesigner.cs
- HtmlAnchor.cs
- ProtocolInformationReader.cs
- basemetadatamappingvisitor.cs
- ImageDrawing.cs
- WebServicesDescriptionAttribute.cs
- SizeChangedEventArgs.cs
- SqlBuilder.cs
- ProgressBarRenderer.cs
- VideoDrawing.cs
- ToolboxItemWrapper.cs
- PageThemeParser.cs
- PartialArray.cs
- NonClientArea.cs
- MemberInfoSerializationHolder.cs
- SystemColors.cs
- ReferentialConstraint.cs
- LambdaCompiler.Address.cs
- WebReferencesBuildProvider.cs
- DataTablePropertyDescriptor.cs
- Query.cs
- TableItemPattern.cs
- CacheHelper.cs
- Function.cs
- MouseCaptureWithinProperty.cs
- DrawingContext.cs
- InvokePattern.cs
- RectValueSerializer.cs
- KeyGestureConverter.cs
- TemplateContent.cs
- XmlDataSourceView.cs
- XPathScanner.cs
- DeclarationUpdate.cs
- Error.cs
- EllipseGeometry.cs
- ActivityDesigner.cs
- View.cs
- RSAPKCS1SignatureFormatter.cs
- DbInsertCommandTree.cs
- XmlUTF8TextReader.cs
- DataRelationCollection.cs
- SqlDataAdapter.cs
- PreDigestedSignedInfo.cs
- XmlnsCompatibleWithAttribute.cs
- MediaContextNotificationWindow.cs
- ResourceReferenceExpression.cs
- UInt16Converter.cs
- StylusPointPropertyId.cs
- BehaviorEditorPart.cs
- XmlAnyElementAttribute.cs
- GenericEnumerator.cs
- ManagedCodeMarkers.cs
- Matrix.cs
- ChineseLunisolarCalendar.cs
- DPCustomTypeDescriptor.cs
- HttpCookieCollection.cs
- OdbcStatementHandle.cs
- SerializableAttribute.cs
- XmlAnyAttributeAttribute.cs
- OptimizedTemplateContentHelper.cs
- SelectorAutomationPeer.cs
- AttributeTable.cs
- DynamicDiscoveryDocument.cs
- hwndwrapper.cs
- TileModeValidation.cs
- Double.cs
- XmlRawWriterWrapper.cs
- Quad.cs
- CompiledQueryCacheKey.cs
- UrlPath.cs
- Clipboard.cs
- XmlDsigSep2000.cs
- BackStopAuthenticationModule.cs
- Evaluator.cs
- FixedNode.cs
- SecurityTraceRecordHelper.cs
- DataGridViewComponentPropertyGridSite.cs
- ImageSourceValueSerializer.cs
- CopyOnWriteList.cs
- StateItem.cs
- EnumerableRowCollectionExtensions.cs
- DefaultProfileManager.cs
- MenuAutomationPeer.cs
- XPathNodeInfoAtom.cs
- ZoneLinkButton.cs
- FormsAuthenticationModule.cs
- SettingsSavedEventArgs.cs
- SurrogateEncoder.cs
- ModelUIElement3D.cs
- RemoteWebConfigurationHostStream.cs
- TableSectionStyle.cs
- Tokenizer.cs
- SqlWebEventProvider.cs
- MediaContextNotificationWindow.cs
- ListViewHitTestInfo.cs
- ValidationError.cs
- WebPartTransformerAttribute.cs