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
- Util.cs
- RepeaterItem.cs
- SafeThemeHandle.cs
- QuaternionRotation3D.cs
- GraphicsContext.cs
- XmlBaseWriter.cs
- _UriTypeConverter.cs
- ManifestSignedXml.cs
- Accessible.cs
- ListViewItemSelectionChangedEvent.cs
- PropertyNames.cs
- WinInetCache.cs
- EventSinkActivity.cs
- NumericPagerField.cs
- WebConfigurationHost.cs
- IdentityReference.cs
- FolderNameEditor.cs
- HuffCodec.cs
- Pen.cs
- TextElementCollectionHelper.cs
- SocketElement.cs
- RetrieveVirtualItemEventArgs.cs
- SoapObjectWriter.cs
- TaskFormBase.cs
- EntityDataSourceChangedEventArgs.cs
- HttpContextWrapper.cs
- ThemeableAttribute.cs
- ClaimTypeRequirement.cs
- DynamicUpdateCommand.cs
- GraphicsState.cs
- ProgressBar.cs
- OleDbParameterCollection.cs
- GlobalizationSection.cs
- WebPartDescriptionCollection.cs
- ResourceProviderFactory.cs
- CodeMemberField.cs
- EventLog.cs
- SafeFileMappingHandle.cs
- SystemEvents.cs
- PassportAuthenticationEventArgs.cs
- UnhandledExceptionEventArgs.cs
- UInt16Storage.cs
- serverconfig.cs
- RawStylusInputCustomDataList.cs
- ReadOnlyNameValueCollection.cs
- ObjectFullSpanRewriter.cs
- OrderedDictionary.cs
- XPathBinder.cs
- TextEditorTyping.cs
- DesigntimeLicenseContextSerializer.cs
- SerializationSectionGroup.cs
- xsdvalidator.cs
- DataGridTextBoxColumn.cs
- ProcessModule.cs
- InputScopeAttribute.cs
- WrappedIUnknown.cs
- EventSetter.cs
- XmlReaderDelegator.cs
- UnsafeNativeMethodsTablet.cs
- RecommendedAsConfigurableAttribute.cs
- WorkflowMarkupSerializationProvider.cs
- OleDbDataReader.cs
- LookupBindingPropertiesAttribute.cs
- CrossContextChannel.cs
- CodeActivityMetadata.cs
- Image.cs
- Utils.cs
- DashStyles.cs
- DbConnectionStringBuilder.cs
- Popup.cs
- MenuRendererStandards.cs
- SingleObjectCollection.cs
- TriggerBase.cs
- FontFamilyIdentifier.cs
- TextEditorTables.cs
- ResourcePart.cs
- ConfigurationFileMap.cs
- SQLByteStorage.cs
- ApplicationSecurityInfo.cs
- Vector3D.cs
- AttributeData.cs
- ContentPlaceHolder.cs
- Tablet.cs
- SafeTimerHandle.cs
- SqlConnectionPoolGroupProviderInfo.cs
- IApplicationTrustManager.cs
- Comparer.cs
- TerminatorSinks.cs
- Polygon.cs
- OracleString.cs
- CodeObjectCreateExpression.cs
- WindowsToolbar.cs
- ADRole.cs
- ReadWriteObjectLock.cs
- ProcessDesigner.cs
- NativeCompoundFileAPIs.cs
- SiteMapSection.cs
- ProxyWebPartManager.cs
- _AuthenticationState.cs
- LocalizabilityAttribute.cs