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
- DoneReceivingAsyncResult.cs
- QuerySelectOp.cs
- SchemaComplexType.cs
- PreviewPrintController.cs
- ContextMenuAutomationPeer.cs
- FormatException.cs
- Comparer.cs
- FormViewActionList.cs
- HttpCapabilitiesBase.cs
- XmlMembersMapping.cs
- DetailsViewRow.cs
- ListenDesigner.cs
- TdsRecordBufferSetter.cs
- DesignerTransaction.cs
- PngBitmapDecoder.cs
- Vector3DAnimationBase.cs
- CodeDefaultValueExpression.cs
- Msec.cs
- ManipulationCompletedEventArgs.cs
- JournalEntryListConverter.cs
- TextBoxBase.cs
- ContextMenu.cs
- PointConverter.cs
- oledbmetadatacolumnnames.cs
- MailAddress.cs
- ExtentCqlBlock.cs
- Main.cs
- VectorCollectionConverter.cs
- SqlDataSourceFilteringEventArgs.cs
- FixedStringLookup.cs
- GridViewRowCollection.cs
- DataControlField.cs
- BinaryObjectReader.cs
- ProcessingInstructionAction.cs
- DynamicResourceExtension.cs
- CriticalHandle.cs
- PrivateFontCollection.cs
- XmlLinkedNode.cs
- Operators.cs
- altserialization.cs
- DefaultBinder.cs
- SmiEventStream.cs
- SmtpException.cs
- NullRuntimeConfig.cs
- ILGenerator.cs
- FtpWebResponse.cs
- TempFiles.cs
- FileDialog_Vista_Interop.cs
- SchemaAttDef.cs
- MailMessageEventArgs.cs
- ScrollBar.cs
- KnownBoxes.cs
- ExpressionVisitorHelpers.cs
- Html32TextWriter.cs
- SiteOfOriginContainer.cs
- MultiByteCodec.cs
- GotoExpression.cs
- ForEachAction.cs
- DeflateEmulationStream.cs
- SqlBooleanizer.cs
- X509SecurityTokenAuthenticator.cs
- MetafileHeaderWmf.cs
- TraceHandlerErrorFormatter.cs
- MembershipPasswordException.cs
- SimplePropertyEntry.cs
- FormClosedEvent.cs
- EventPrivateKey.cs
- EventProviderWriter.cs
- ISAPIWorkerRequest.cs
- FlowLayout.cs
- OdbcCommandBuilder.cs
- MatchingStyle.cs
- SqlGenerator.cs
- MediaContextNotificationWindow.cs
- UnsafeNativeMethodsCLR.cs
- ProfileSection.cs
- ExtendedPropertyCollection.cs
- DataGridViewIntLinkedList.cs
- RelationshipEnd.cs
- DataRowCollection.cs
- UiaCoreTypesApi.cs
- CodeParameterDeclarationExpression.cs
- DocumentEventArgs.cs
- TextFragmentEngine.cs
- WindowsRichEditRange.cs
- RijndaelManagedTransform.cs
- TreeViewEvent.cs
- TerminatorSinks.cs
- UpdateRecord.cs
- MarginsConverter.cs
- AssemblyInfo.cs
- DesignerForm.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- BlockCollection.cs
- ReadOnlyHierarchicalDataSource.cs
- CharKeyFrameCollection.cs
- FormsAuthenticationCredentials.cs
- OpenFileDialog.cs
- Timer.cs
- SslStream.cs