Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / RoutedPropertyChangedEventArgs.cs / 1 / RoutedPropertyChangedEventArgs.cs
using System; using System.Windows; using System.Windows.Input; // Disable CS3001, CS3003, CS3024: Warning as Error: not CLS-compliant #pragma warning disable 3001, 3003, 3024 namespace System.Windows { ////// This delegate must used by handlers of the RoutedPropertyChangedEvent event. /// /// The current element along the event's route. /// The event arguments containing additional information about the event. ///Nothing. public delegate void RoutedPropertyChangedEventHandler(object sender, RoutedPropertyChangedEventArgs e); /// /// This RoutedPropertyChangedEventArgs class contains old and new value when /// RoutedPropertyChangedEvent is raised. /// ////// public class RoutedPropertyChangedEventArgs : RoutedEventArgs { /// /// This is an instance constructor for the RoutedPropertyChangedEventArgs class. /// It is constructed with a reference to the event being raised. /// /// The old property value /// The new property value ///Nothing. public RoutedPropertyChangedEventArgs(T oldValue, T newValue) : base() { _oldValue = oldValue; _newValue = newValue; } ////// This is an instance constructor for the RoutedPropertyChangedEventArgs class. /// It is constructed with a reference to the event being raised. /// /// The old property value /// The new property value /// RoutedEvent ///Nothing. public RoutedPropertyChangedEventArgs(T oldValue, T newValue, RoutedEvent routedEvent) : this(oldValue, newValue) { RoutedEvent = routedEvent; } ////// Return the old value /// public T OldValue { get { return _oldValue; } } ////// Return the new value /// public T NewValue { get { return _newValue; } } ////// This method is used to perform the proper type casting in order to /// call the type-safe RoutedPropertyChangedEventHandler delegate for the IsCheckedChangedEvent event. /// /// The handler to invoke. /// The current object along the event's route. ///Nothing. ///protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { RoutedPropertyChangedEventHandler handler = (RoutedPropertyChangedEventHandler )genericHandler; handler(genericTarget, this); } private T _oldValue; private T _newValue; } } // 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
- WorkflowViewManager.cs
- EdmSchemaError.cs
- HttpListenerException.cs
- RangeValueProviderWrapper.cs
- MonthCalendar.cs
- XPathNavigatorReader.cs
- HandledEventArgs.cs
- HtmlInputButton.cs
- SubpageParaClient.cs
- And.cs
- XsdDataContractImporter.cs
- XmlSchemaImporter.cs
- SecurityContext.cs
- Knowncolors.cs
- loginstatus.cs
- PageMediaType.cs
- Binding.cs
- StyleXamlTreeBuilder.cs
- VirtualPath.cs
- ExternalException.cs
- EncoderBestFitFallback.cs
- HMACSHA256.cs
- XXXOnTypeBuilderInstantiation.cs
- FullTextState.cs
- BindUriHelper.cs
- DesignColumn.cs
- ReferenceEqualityComparer.cs
- Debug.cs
- _RequestCacheProtocol.cs
- CodeAttributeDeclaration.cs
- DispatchOperationRuntime.cs
- MetaChildrenColumn.cs
- ClientRuntimeConfig.cs
- GridViewCancelEditEventArgs.cs
- COAUTHINFO.cs
- WorkflowOperationBehavior.cs
- ClusterRegistryConfigurationProvider.cs
- DropShadowBitmapEffect.cs
- MemberDomainMap.cs
- FacetEnabledSchemaElement.cs
- EndpointDiscoveryMetadataCD1.cs
- DataBoundControlHelper.cs
- UxThemeWrapper.cs
- XmlSchemaSimpleType.cs
- OdbcUtils.cs
- UnsafeNativeMethods.cs
- GeometryConverter.cs
- SystemIcmpV6Statistics.cs
- EnvironmentPermission.cs
- BrowserDefinitionCollection.cs
- MonitoringDescriptionAttribute.cs
- odbcmetadatacollectionnames.cs
- VolatileEnlistmentState.cs
- TaiwanLunisolarCalendar.cs
- NamespaceListProperty.cs
- _StreamFramer.cs
- Blend.cs
- MultipleViewPattern.cs
- TreeView.cs
- TaiwanLunisolarCalendar.cs
- BookmarkUndoUnit.cs
- TriState.cs
- FieldDescriptor.cs
- MdbDataFileEditor.cs
- EditBehavior.cs
- DrawToolTipEventArgs.cs
- XmlSchemaInclude.cs
- ImmComposition.cs
- PeerApplication.cs
- RegistryDataKey.cs
- BidPrivateBase.cs
- ToolTipAutomationPeer.cs
- CodeMemberMethod.cs
- Section.cs
- PolyBezierSegment.cs
- DataObjectFieldAttribute.cs
- InvalidPrinterException.cs
- SqlCommandBuilder.cs
- ProfileServiceManager.cs
- PassportAuthentication.cs
- WithStatement.cs
- SimpleApplicationHost.cs
- DbProviderFactory.cs
- GradientSpreadMethodValidation.cs
- Switch.cs
- WaitHandle.cs
- EndpointBehaviorElementCollection.cs
- CriticalHandle.cs
- TextServicesCompartment.cs
- Tablet.cs
- LookupNode.cs
- SessionEndedEventArgs.cs
- HttpHandlerAction.cs
- TraceSwitch.cs
- IOException.cs
- SchemaMapping.cs
- pingexception.cs
- TypeDescriptor.cs
- IODescriptionAttribute.cs
- RunClient.cs