Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Command / ExecutedRoutedEventArgs.cs / 1305600 / ExecutedRoutedEventArgs.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Input; namespace System.Windows.Input { ////// Event handler for the Executed events. /// public delegate void ExecutedRoutedEventHandler(object sender, ExecutedRoutedEventArgs e); ////// Event arguments for the Executed events. /// public sealed class ExecutedRoutedEventArgs : RoutedEventArgs { #region Constructor ////// Initializes a new instance of this class. /// /// The command that is being executed. /// The parameter that was passed when executing the command. internal ExecutedRoutedEventArgs(ICommand command, object parameter) { if (command == null) { throw new ArgumentNullException("command"); } _command = command; _parameter = parameter; } #endregion #region Public Properties ////// The command being executed. /// public ICommand Command { get { return _command; } } ////// The parameter passed when executing the command. /// public object Parameter { get { return _parameter; } } #endregion #region Protected Methods ////// Calls the handler. /// /// Handler delegate to invoke /// Target element protected override void InvokeEventHandler(Delegate genericHandler, object target) { ExecutedRoutedEventHandler handler = (ExecutedRoutedEventHandler)genericHandler; handler(target as DependencyObject, this); } #endregion #region Data private ICommand _command; private object _parameter; #endregion } } // 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
- DataSourceCache.cs
- WeakEventTable.cs
- webproxy.cs
- MetadataCache.cs
- DetailsViewPageEventArgs.cs
- TraceContext.cs
- SplashScreenNativeMethods.cs
- SectionUpdates.cs
- IntSecurity.cs
- __Filters.cs
- TrimSurroundingWhitespaceAttribute.cs
- _ProxyChain.cs
- CommentGlyph.cs
- recordstatescratchpad.cs
- MessageEncoder.cs
- MediaContextNotificationWindow.cs
- TextBox.cs
- EntityDataSourceWrapperCollection.cs
- WebPartVerb.cs
- SmiXetterAccessMap.cs
- Blend.cs
- XmlCustomFormatter.cs
- XmlSiteMapProvider.cs
- AttachedAnnotation.cs
- XmlChildEnumerator.cs
- TextPointer.cs
- Grant.cs
- OracleInfoMessageEventArgs.cs
- ContextStaticAttribute.cs
- TextLineBreak.cs
- OutOfMemoryException.cs
- EventWaitHandleSecurity.cs
- ForeignKeyConstraint.cs
- x509utils.cs
- MLangCodePageEncoding.cs
- DockPanel.cs
- ExclusiveCanonicalizationTransform.cs
- EpmContentDeSerializer.cs
- InputMethodStateTypeInfo.cs
- RouteTable.cs
- Path.cs
- InvalidOperationException.cs
- SoapFormatExtensions.cs
- ContextStaticAttribute.cs
- Menu.cs
- ViewEvent.cs
- TableStyle.cs
- HtmlEmptyTagControlBuilder.cs
- UIElementPropertyUndoUnit.cs
- MetadataPropertyvalue.cs
- InstanceLockTracking.cs
- ExpressionNode.cs
- Stroke.cs
- _AutoWebProxyScriptHelper.cs
- ProviderUtil.cs
- RequestQueryProcessor.cs
- CollectionChangedEventManager.cs
- ColorConvertedBitmap.cs
- DesignSurfaceServiceContainer.cs
- FrameworkElementFactoryMarkupObject.cs
- SchemaLookupTable.cs
- Enum.cs
- FormattedTextSymbols.cs
- ModelPropertyImpl.cs
- BehaviorEditorPart.cs
- TypedTableBase.cs
- SocketException.cs
- hwndwrapper.cs
- GcHandle.cs
- WebPartConnection.cs
- DashStyle.cs
- Executor.cs
- DispatcherHooks.cs
- ObjectSecurity.cs
- KeyboardEventArgs.cs
- DataControlLinkButton.cs
- TrustSection.cs
- IpcServerChannel.cs
- NetworkAddressChange.cs
- XmlSchemaGroup.cs
- recordstatescratchpad.cs
- ObsoleteAttribute.cs
- SafeMILHandle.cs
- ComboBoxItem.cs
- UserPreferenceChangingEventArgs.cs
- WsatServiceAddress.cs
- SocketElement.cs
- DataGridViewBand.cs
- TargetPerspective.cs
- TextSpan.cs
- DisplayMemberTemplateSelector.cs
- ReadWriteObjectLock.cs
- ClientFormsIdentity.cs
- XmlAttributeAttribute.cs
- UpdateProgress.cs
- QuaternionValueSerializer.cs
- TextRunTypographyProperties.cs
- CancellationState.cs
- VisualProxy.cs
- ShapingEngine.cs