Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Condition.cs
- AuthenticatingEventArgs.cs
- ConsumerConnectionPoint.cs
- Brushes.cs
- MessagePropertyDescriptionCollection.cs
- DataBindingCollection.cs
- XmlElementAttributes.cs
- ToolboxItemLoader.cs
- SchemaNotation.cs
- RootBuilder.cs
- ping.cs
- DependencyObjectValidator.cs
- TileBrush.cs
- ConnectionStringSettingsCollection.cs
- HtmlProps.cs
- DataGridColumnCollection.cs
- DSACryptoServiceProvider.cs
- CryptoKeySecurity.cs
- WmfPlaceableFileHeader.cs
- XsltContext.cs
- activationcontext.cs
- EventEntry.cs
- DiscreteKeyFrames.cs
- RightsManagementProvider.cs
- ParallelTimeline.cs
- SiteMapDataSource.cs
- GridViewEditEventArgs.cs
- SqlUtils.cs
- XMLSchema.cs
- CheckBoxStandardAdapter.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- TrackingProfileManager.cs
- StoragePropertyMapping.cs
- ListParagraph.cs
- SystemIcmpV6Statistics.cs
- BitmapMetadataEnumerator.cs
- PolygonHotSpot.cs
- ToolStripDropDownButton.cs
- Window.cs
- StringDictionaryWithComparer.cs
- TokenBasedSet.cs
- HtmlTextArea.cs
- DataBindingCollectionEditor.cs
- UnsafeNativeMethodsCLR.cs
- NavigateEvent.cs
- ErrorFormatterPage.cs
- SplineQuaternionKeyFrame.cs
- DesignTimeParseData.cs
- StateWorkerRequest.cs
- PolicyManager.cs
- GeometryDrawing.cs
- AppDomainManager.cs
- ToolStripGripRenderEventArgs.cs
- HtmlHead.cs
- InteropDesigner.xaml.cs
- TextFormattingConverter.cs
- TypeConverterHelper.cs
- DynamicDataResources.Designer.cs
- MonitoringDescriptionAttribute.cs
- WindowsAuthenticationModule.cs
- SystemIPGlobalProperties.cs
- ConfigPathUtility.cs
- CodeStatement.cs
- XmlBaseReader.cs
- SourceFileBuildProvider.cs
- StrokeCollection2.cs
- FlowLayoutPanel.cs
- DataGridItem.cs
- FilteredAttributeCollection.cs
- WebSysDescriptionAttribute.cs
- GridErrorDlg.cs
- X509Certificate2Collection.cs
- DateTimeParse.cs
- ModuleConfigurationInfo.cs
- storepermissionattribute.cs
- EntityContainerEmitter.cs
- ResourceProviderFactory.cs
- FixedPageAutomationPeer.cs
- FrameworkTemplate.cs
- AlignmentXValidation.cs
- AdjustableArrowCap.cs
- GeneralTransform3DGroup.cs
- SqlDataSourceSummaryPanel.cs
- PropagatorResult.cs
- ListViewGroupItemCollection.cs
- CodeMemberMethod.cs
- DataRecordInternal.cs
- TransportBindingElement.cs
- Repeater.cs
- SymLanguageVendor.cs
- TextSelection.cs
- ChildDocumentBlock.cs
- RunInstallerAttribute.cs
- BooleanAnimationBase.cs
- XmlDataDocument.cs
- InputScopeConverter.cs
- BatchWriter.cs
- StringConverter.cs
- TextHidden.cs
- OdbcCommand.cs