Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- KnownTypesProvider.cs
- ListParaClient.cs
- SessionSwitchEventArgs.cs
- PlatformNotSupportedException.cs
- TreeNodeMouseHoverEvent.cs
- SafeProcessHandle.cs
- TempFiles.cs
- SqlGatherConsumedAliases.cs
- ExeContext.cs
- ContextQuery.cs
- SqlSupersetValidator.cs
- UiaCoreApi.cs
- ListViewUpdateEventArgs.cs
- DtrList.cs
- WindowsToolbarItemAsMenuItem.cs
- MarginCollapsingState.cs
- SiteMap.cs
- Application.cs
- ReceiveSecurityHeaderEntry.cs
- PrimitiveXmlSerializers.cs
- EntityDataSourceView.cs
- FontSizeConverter.cs
- IxmlLineInfo.cs
- BitmapEffectRenderDataResource.cs
- RangeBase.cs
- ToolStripDropTargetManager.cs
- SQLMembershipProvider.cs
- DockPanel.cs
- PageCodeDomTreeGenerator.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- XmlC14NWriter.cs
- ServicesUtilities.cs
- GeneralTransform3DTo2D.cs
- RelationshipConverter.cs
- CapabilitiesUse.cs
- TextRunProperties.cs
- TextContainerHelper.cs
- DataAdapter.cs
- TextViewSelectionProcessor.cs
- ClaimComparer.cs
- HttpHeaderCollection.cs
- RootDesignerSerializerAttribute.cs
- DrawingCollection.cs
- LinqToSqlWrapper.cs
- InternalResources.cs
- CharacterBuffer.cs
- NavigatingCancelEventArgs.cs
- ChangeNode.cs
- UnrecognizedPolicyAssertionElement.cs
- validation.cs
- RuntimeTrackingProfile.cs
- DataStreamFromComStream.cs
- CachedFontFace.cs
- CharacterHit.cs
- SqlNodeAnnotations.cs
- WebServiceErrorEvent.cs
- RNGCryptoServiceProvider.cs
- VectorAnimationBase.cs
- WindowsPrincipal.cs
- TableRow.cs
- ObjectConverter.cs
- EncoderFallback.cs
- ComponentChangingEvent.cs
- Statements.cs
- Activator.cs
- ConfigurationValue.cs
- RestHandler.cs
- InvalidProgramException.cs
- smtppermission.cs
- OperationInfo.cs
- SessionStateUtil.cs
- XamlBrushSerializer.cs
- TreeSet.cs
- NamespaceList.cs
- SqlInfoMessageEvent.cs
- IConvertible.cs
- _ScatterGatherBuffers.cs
- milexports.cs
- MemberMaps.cs
- XmlSchemaComplexContent.cs
- InfoCardProofToken.cs
- SoapInteropTypes.cs
- MouseActionValueSerializer.cs
- CodeParameterDeclarationExpressionCollection.cs
- JsonFormatGeneratorStatics.cs
- _SSPIWrapper.cs
- GridView.cs
- JsonQueryStringConverter.cs
- EncoderParameter.cs
- isolationinterop.cs
- DesignTimeSiteMapProvider.cs
- DeferredBinaryDeserializerExtension.cs
- ResourceDisplayNameAttribute.cs
- DefaultProxySection.cs
- LicenseContext.cs
- WindowPattern.cs
- HttpRequest.cs
- BaseCodeDomTreeGenerator.cs
- CmsInterop.cs
- PropertyIDSet.cs