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
- SolidColorBrush.cs
- ExtendedPropertyCollection.cs
- XmlSiteMapProvider.cs
- FunctionDefinition.cs
- XmlUtil.cs
- CategoryAttribute.cs
- XmlQueryContext.cs
- MenuItemStyle.cs
- LongCountAggregationOperator.cs
- ReadOnlyPropertyMetadata.cs
- ZoneLinkButton.cs
- SuppressMergeCheckAttribute.cs
- ParserContext.cs
- DataKeyArray.cs
- OpCellTreeNode.cs
- NameSpaceExtractor.cs
- SqlProviderManifest.cs
- GenericTextProperties.cs
- WebBrowser.cs
- SafeNativeMethodsMilCoreApi.cs
- RelatedView.cs
- ListBox.cs
- Emitter.cs
- ResourceReader.cs
- TemplateEditingVerb.cs
- DBParameter.cs
- GridViewColumnCollectionChangedEventArgs.cs
- TableFieldsEditor.cs
- AsymmetricKeyExchangeDeformatter.cs
- Part.cs
- DownloadProgressEventArgs.cs
- Point3DCollectionConverter.cs
- IdleTimeoutMonitor.cs
- TemplateControlParser.cs
- DockPatternIdentifiers.cs
- BuildResultCache.cs
- followingquery.cs
- SqlNode.cs
- UdpDuplexChannel.cs
- CompositeTypefaceMetrics.cs
- SafeMemoryMappedFileHandle.cs
- SecurityVersion.cs
- PostBackOptions.cs
- SpecialFolderEnumConverter.cs
- BinaryWriter.cs
- SoapEnumAttribute.cs
- DisplayInformation.cs
- WebConvert.cs
- FillBehavior.cs
- Automation.cs
- ConfigsHelper.cs
- WebZone.cs
- _SslSessionsCache.cs
- WorkflowInstanceRecord.cs
- RequestSecurityTokenResponse.cs
- SourceLocation.cs
- ConnectionOrientedTransportChannelFactory.cs
- AsnEncodedData.cs
- HtmlWindow.cs
- CodeGenerationManager.cs
- SQLInt32.cs
- arclist.cs
- Environment.cs
- DtdParser.cs
- CodeTypeOfExpression.cs
- XmlSerializer.cs
- SafeFileMapViewHandle.cs
- Cell.cs
- Win32KeyboardDevice.cs
- DateTimeConverter2.cs
- CrossAppDomainChannel.cs
- Parameter.cs
- Currency.cs
- ExplicitDiscriminatorMap.cs
- PluralizationService.cs
- ValidatedControlConverter.cs
- XmlSerializationWriter.cs
- WorkflowDurableInstance.cs
- PropertyChangingEventArgs.cs
- DiscreteKeyFrames.cs
- UnknownBitmapEncoder.cs
- ScriptBehaviorDescriptor.cs
- EntityContainerEmitter.cs
- TextTreeInsertUndoUnit.cs
- BamlBinaryWriter.cs
- TextParagraphProperties.cs
- BypassElementCollection.cs
- InheritedPropertyDescriptor.cs
- UriScheme.cs
- SolidColorBrush.cs
- DataGridViewCellLinkedList.cs
- TextContainerChangeEventArgs.cs
- TemplateControlParser.cs
- XmlAggregates.cs
- XmlDeclaration.cs
- ConfigXmlReader.cs
- NodeLabelEditEvent.cs
- NavigationFailedEventArgs.cs
- Pair.cs
- InternalConfigEventArgs.cs