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
- MsmqTransportBindingElement.cs
- Lease.cs
- CheckedListBox.cs
- Size3D.cs
- ScriptModule.cs
- ExtensibleClassFactory.cs
- BooleanAnimationBase.cs
- TextEditorSpelling.cs
- CurrentTimeZone.cs
- diagnosticsswitches.cs
- OrthographicCamera.cs
- TemplateBindingExtension.cs
- SplitterEvent.cs
- Vertex.cs
- FormatException.cs
- QuaternionAnimation.cs
- FontUnitConverter.cs
- SubstitutionList.cs
- CharAnimationUsingKeyFrames.cs
- QuaternionAnimation.cs
- SafeThemeHandle.cs
- PersonalizationProviderCollection.cs
- RepeatBehaviorConverter.cs
- Screen.cs
- RadioButtonAutomationPeer.cs
- WebPartsPersonalizationAuthorization.cs
- BuiltInPermissionSets.cs
- TileModeValidation.cs
- DecimalAverageAggregationOperator.cs
- SystemSounds.cs
- ThreadAbortException.cs
- UriWriter.cs
- LightweightCodeGenerator.cs
- AppDomainProtocolHandler.cs
- WebPartConnectionsEventArgs.cs
- XsltQilFactory.cs
- ProviderConnectionPoint.cs
- WebResponse.cs
- SQLStringStorage.cs
- ProfileParameter.cs
- XmlArrayItemAttribute.cs
- WebUtil.cs
- BaseUriHelper.cs
- InstanceNotReadyException.cs
- Base64Encoding.cs
- XmlNullResolver.cs
- PixelShader.cs
- TemplateControlParser.cs
- MembershipPasswordException.cs
- DictionaryChange.cs
- MobilePage.cs
- WrappedKeySecurityTokenParameters.cs
- WindowProviderWrapper.cs
- HierarchicalDataBoundControlAdapter.cs
- XmlComplianceUtil.cs
- XmlSchemaElement.cs
- EntityDataSourceView.cs
- URLMembershipCondition.cs
- MemoryFailPoint.cs
- StylusEventArgs.cs
- XsdDateTime.cs
- CorePropertiesFilter.cs
- CancellationHandlerDesigner.cs
- RuntimeConfigurationRecord.cs
- TextRunProperties.cs
- TextDocumentView.cs
- RuleSettingsCollection.cs
- DirectionalLight.cs
- updatecommandorderer.cs
- DelimitedListTraceListener.cs
- WindowsSpinner.cs
- DBParameter.cs
- SqlDataSourceSelectingEventArgs.cs
- RotateTransform.cs
- XmlSchemaProviderAttribute.cs
- __Error.cs
- ReadOnlyNameValueCollection.cs
- XmlText.cs
- TypeConverterHelper.cs
- PolyBezierSegment.cs
- WebConfigurationFileMap.cs
- TransformedBitmap.cs
- ClientSponsor.cs
- ServiceDeploymentInfo.cs
- Compiler.cs
- DesignerView.xaml.cs
- UrlMappingCollection.cs
- ContentElementCollection.cs
- ColumnMapProcessor.cs
- ListViewDeletedEventArgs.cs
- Facet.cs
- EnterpriseServicesHelper.cs
- PropertyGridEditorPart.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ResourceReader.cs
- XmlSchemaComplexContentRestriction.cs
- EpmSyndicationContentDeSerializer.cs
- ChangeProcessor.cs
- WinInet.cs
- figurelength.cs