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
- ScalarType.cs
- WebServiceFault.cs
- Column.cs
- DeferredSelectedIndexReference.cs
- WorkflowTransactionService.cs
- Blend.cs
- ObjectTypeMapping.cs
- RoleServiceManager.cs
- WebScriptEnablingElement.cs
- XmlChoiceIdentifierAttribute.cs
- CalendarDateChangedEventArgs.cs
- SymbolMethod.cs
- ProcessHostServerConfig.cs
- PasswordRecovery.cs
- IDQuery.cs
- LinearGradientBrush.cs
- PermissionSet.cs
- RadioButtonRenderer.cs
- PersistencePipeline.cs
- SpanIndex.cs
- StrongTypingException.cs
- WeakEventTable.cs
- OverrideMode.cs
- DependentList.cs
- RC2.cs
- XslTransform.cs
- WinFormsComponentEditor.cs
- CacheVirtualItemsEvent.cs
- DbConnectionStringBuilder.cs
- ColorInterpolationModeValidation.cs
- CfgParser.cs
- DesignerDataTable.cs
- XmlNodeComparer.cs
- JsonFaultDetail.cs
- AutomationElement.cs
- MetabaseServerConfig.cs
- SuppressIldasmAttribute.cs
- CacheEntry.cs
- Pts.cs
- TargetControlTypeAttribute.cs
- HandlerFactoryWrapper.cs
- FontFamilyValueSerializer.cs
- ManagementObject.cs
- RankException.cs
- CommonObjectSecurity.cs
- BitmapFrameEncode.cs
- BamlRecordReader.cs
- DbModificationCommandTree.cs
- DragCompletedEventArgs.cs
- DisplayClaim.cs
- SerializationUtilities.cs
- VarInfo.cs
- GridEntry.cs
- ServiceMetadataBehavior.cs
- SafeLibraryHandle.cs
- AuthorizationSection.cs
- DispatcherSynchronizationContext.cs
- DispatcherEventArgs.cs
- ReflectionPermission.cs
- HttpVersion.cs
- NamespaceEmitter.cs
- AdRotator.cs
- TreeViewItemAutomationPeer.cs
- HyperLink.cs
- MetadataProperty.cs
- OleDbTransaction.cs
- MessageDroppedTraceRecord.cs
- SQLDecimal.cs
- ExtenderProviderService.cs
- BlobPersonalizationState.cs
- EdmSchemaError.cs
- IssuedTokensHeader.cs
- CacheRequest.cs
- ThemeableAttribute.cs
- LineGeometry.cs
- ShortcutKeysEditor.cs
- FileCodeGroup.cs
- CodeSubDirectory.cs
- DataViewSettingCollection.cs
- Error.cs
- OptimizerPatterns.cs
- DictionaryChange.cs
- CodeTypeParameterCollection.cs
- DesigntimeLicenseContext.cs
- KeyboardDevice.cs
- PriorityChain.cs
- TranslateTransform3D.cs
- FreezableDefaultValueFactory.cs
- ComboBoxRenderer.cs
- KnownColorTable.cs
- ViewPort3D.cs
- X509ChainElement.cs
- FrameworkContextData.cs
- TaskFactory.cs
- EditCommandColumn.cs
- SqlDataReader.cs
- SynchronizedInputAdaptor.cs
- TypeHelpers.cs
- RegexReplacement.cs
- PointAnimationClockResource.cs