Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Input / Command / ExecutedRoutedEventArgs.cs / 1 / 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
- JsonQueryStringConverter.cs
- SystemNetworkInterface.cs
- ObjectList.cs
- DependencyProperty.cs
- DefaultClaimSet.cs
- DataGridViewButtonColumn.cs
- EnvironmentPermission.cs
- DisplayNameAttribute.cs
- TextParagraphProperties.cs
- DetailsViewRow.cs
- SspiSecurityToken.cs
- ListViewPagedDataSource.cs
- AffineTransform3D.cs
- GcSettings.cs
- XmlSchemaFacet.cs
- BindingMemberInfo.cs
- UpDownEvent.cs
- XpsTokenContext.cs
- TypeHelpers.cs
- TraceUtility.cs
- ScriptResourceDefinition.cs
- GridViewDeleteEventArgs.cs
- BaseCodePageEncoding.cs
- MailMessage.cs
- XmlParser.cs
- SQLRoleProvider.cs
- ThousandthOfEmRealDoubles.cs
- SqlBooleanizer.cs
- DefinitionUpdate.cs
- CancelRequestedRecord.cs
- FtpRequestCacheValidator.cs
- DbDataSourceEnumerator.cs
- HtmlMeta.cs
- XmlSchemas.cs
- TrackingSection.cs
- TypeDelegator.cs
- WebPartExportVerb.cs
- LifetimeServices.cs
- TemplatedMailWebEventProvider.cs
- OdbcDataReader.cs
- ToolTipService.cs
- XmlReader.cs
- ConstraintEnumerator.cs
- BaseContextMenu.cs
- DbQueryCommandTree.cs
- EncryptedPackageFilter.cs
- UnicodeEncoding.cs
- XsdBuildProvider.cs
- XDRSchema.cs
- HtmlContainerControl.cs
- VisualTreeUtils.cs
- ConstraintEnumerator.cs
- UIElement3D.cs
- ListViewItem.cs
- TypeDelegator.cs
- InfoCardRequestException.cs
- EdgeModeValidation.cs
- PersonalizationDictionary.cs
- ProxyElement.cs
- UserCancellationException.cs
- DBConcurrencyException.cs
- GeneralTransformGroup.cs
- SafeIUnknown.cs
- SessionIDManager.cs
- EditableRegion.cs
- GACMembershipCondition.cs
- TextDecoration.cs
- NamespaceList.cs
- Vector3DCollectionConverter.cs
- TableRow.cs
- CreateParams.cs
- InvalidPrinterException.cs
- DmlSqlGenerator.cs
- WorkflowMarkupSerializer.cs
- DataGridViewElement.cs
- Span.cs
- XmlValidatingReaderImpl.cs
- XmlSchemaInfo.cs
- TextContainerHelper.cs
- SQLBinaryStorage.cs
- PrimitiveCodeDomSerializer.cs
- COM2Enum.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- InternalConfirm.cs
- AutomationTextAttribute.cs
- ObjectDataSourceSelectingEventArgs.cs
- BrowserCapabilitiesCodeGenerator.cs
- WindowsIPAddress.cs
- LayoutInformation.cs
- Argument.cs
- TableColumn.cs
- SemanticAnalyzer.cs
- ToolboxDataAttribute.cs
- TCEAdapterGenerator.cs
- AudioSignalProblemOccurredEventArgs.cs
- SuppressIldasmAttribute.cs
- XmlSchemaComplexType.cs
- MessageQueueConverter.cs
- WebBrowser.cs
- InProcStateClientManager.cs