Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / CalendarSelectionChangedEventArgs.cs / 1305600 / CalendarSelectionChangedEventArgs.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Windows; namespace System.Windows.Controls { ////// Workaround for Dev10 Bug 527138 UIElement.RaiseEvent(e) throws InvalidCastException when /// e is of type SelectionChangedEventArgs /// e.RoutedEvent was registered with a handler not of type System.Windows.Controls.SelectionChangedEventHandler /// internal class CalendarSelectionChangedEventArgs : SelectionChangedEventArgs { ////// Constructor /// /// Routed Event /// Items removed from selection /// Items added to selection public CalendarSelectionChangedEventArgs(RoutedEvent eventId, IList removedItems, IList addedItems) : base(eventId, removedItems, addedItems) { } protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { EventHandlerhandler = genericHandler as EventHandler ; if (handler != null) { handler(genericTarget, this); } else { base.InvokeEventHandler(genericHandler, genericTarget); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Windows; namespace System.Windows.Controls { /// /// Workaround for Dev10 Bug 527138 UIElement.RaiseEvent(e) throws InvalidCastException when /// e is of type SelectionChangedEventArgs /// e.RoutedEvent was registered with a handler not of type System.Windows.Controls.SelectionChangedEventHandler /// internal class CalendarSelectionChangedEventArgs : SelectionChangedEventArgs { ////// Constructor /// /// Routed Event /// Items removed from selection /// Items added to selection public CalendarSelectionChangedEventArgs(RoutedEvent eventId, IList removedItems, IList addedItems) : base(eventId, removedItems, addedItems) { } protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { EventHandlerhandler = genericHandler as EventHandler ; if (handler != null) { handler(genericTarget, this); } else { base.InvokeEventHandler(genericHandler, genericTarget); } } } } // 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
- BrowserCapabilitiesFactory35.cs
- ProfileInfo.cs
- ToolStripDropDownItemDesigner.cs
- DecoratedNameAttribute.cs
- XmlWhitespace.cs
- SqlColumnizer.cs
- CapabilitiesState.cs
- X500Name.cs
- NodeInfo.cs
- InternalConfigHost.cs
- TaskFileService.cs
- SqlMethodCallConverter.cs
- SignatureHelper.cs
- Compiler.cs
- ExtensibleClassFactory.cs
- SspiHelper.cs
- CodeEventReferenceExpression.cs
- RepeaterItemCollection.cs
- WsiProfilesElement.cs
- EventMap.cs
- DocumentScope.cs
- IgnoreDeviceFilterElement.cs
- X509Chain.cs
- SerializationFieldInfo.cs
- SystemColors.cs
- CacheOutputQuery.cs
- WindowsEditBoxRange.cs
- DelegateBodyWriter.cs
- UnionCqlBlock.cs
- InertiaRotationBehavior.cs
- StickyNoteHelper.cs
- Knowncolors.cs
- DataSourceControlBuilder.cs
- PolyQuadraticBezierSegment.cs
- ScrollViewerAutomationPeer.cs
- HScrollBar.cs
- TransactedReceiveScope.cs
- TextFormatter.cs
- CapabilitiesUse.cs
- VirtualPathProvider.cs
- KeyEventArgs.cs
- WSFederationHttpSecurity.cs
- MergablePropertyAttribute.cs
- HexParser.cs
- FlowLayoutPanel.cs
- LinkTarget.cs
- InstanceOwner.cs
- SqlDataSourceSelectingEventArgs.cs
- WebPartMenu.cs
- ArrayList.cs
- XmlChildNodes.cs
- DBPropSet.cs
- DateBoldEvent.cs
- DefaultBindingPropertyAttribute.cs
- StringArrayConverter.cs
- Visual3D.cs
- SmiEventSink_Default.cs
- GeneralTransform.cs
- SessionViewState.cs
- FileDataSourceCache.cs
- TypeUtil.cs
- TypefaceMetricsCache.cs
- DesignerListAdapter.cs
- OpenTypeCommon.cs
- ExceptionTrace.cs
- WebConfigurationFileMap.cs
- PseudoWebRequest.cs
- IApplicationTrustManager.cs
- DataBoundLiteralControl.cs
- WebServiceParameterData.cs
- HttpListenerResponse.cs
- SqlRowUpdatingEvent.cs
- _SSPIWrapper.cs
- BasePattern.cs
- MenuItem.cs
- StyleReferenceConverter.cs
- StaticFileHandler.cs
- DEREncoding.cs
- HttpBufferlessInputStream.cs
- NetTcpSecurity.cs
- ReliabilityContractAttribute.cs
- Menu.cs
- BulletDecorator.cs
- PrinterResolution.cs
- Compilation.cs
- ProfileInfo.cs
- TextTreeNode.cs
- UIElement3DAutomationPeer.cs
- DirectionalLight.cs
- WindowsGraphicsWrapper.cs
- FirstMatchCodeGroup.cs
- BamlRecordWriter.cs
- ParallelRangeManager.cs
- GradientStopCollection.cs
- XmlEntityReference.cs
- SigningCredentials.cs
- HttpProfileBase.cs
- OpCodes.cs
- Context.cs
- DeploymentSection.cs