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
- NumberFormatter.cs
- SystemColorTracker.cs
- BinaryQueryOperator.cs
- JoinElimination.cs
- DataListItemCollection.cs
- infer.cs
- EventLogPermission.cs
- IndexOutOfRangeException.cs
- WeakReadOnlyCollection.cs
- ConstructorBuilder.cs
- WindowsFont.cs
- GradientStop.cs
- SecurityManager.cs
- RoleGroupCollectionEditor.cs
- CSharpCodeProvider.cs
- FixedSOMFixedBlock.cs
- TranslateTransform.cs
- WebPartActionVerb.cs
- DataSourceControlBuilder.cs
- DataGridViewHitTestInfo.cs
- BamlBinaryWriter.cs
- Grammar.cs
- XMLUtil.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- ClaimComparer.cs
- TextLineResult.cs
- FixedTextSelectionProcessor.cs
- figurelengthconverter.cs
- HttpServerChannel.cs
- SqlFacetAttribute.cs
- MD5CryptoServiceProvider.cs
- EmbeddedMailObject.cs
- HMACRIPEMD160.cs
- PackageStore.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- Pick.cs
- _RegBlobWebProxyDataBuilder.cs
- recordstatefactory.cs
- SiteOfOriginPart.cs
- ProcessModelInfo.cs
- BamlRecordWriter.cs
- CustomErrorsSection.cs
- XmlSerializerVersionAttribute.cs
- PlainXmlSerializer.cs
- QueryOutputWriter.cs
- SafeNativeMethods.cs
- DbgCompiler.cs
- ResourceDisplayNameAttribute.cs
- ProcessManager.cs
- FilterEventArgs.cs
- Buffer.cs
- NetworkInformationPermission.cs
- SimplePropertyEntry.cs
- DataContractSerializer.cs
- ColumnMapCopier.cs
- CurrentChangingEventManager.cs
- CaseInsensitiveComparer.cs
- ExtractorMetadata.cs
- DataGridAddNewRow.cs
- TextAdaptor.cs
- QueueSurrogate.cs
- SqlStream.cs
- loginstatus.cs
- RelativeSource.cs
- InternalResources.cs
- CaseInsensitiveHashCodeProvider.cs
- Helpers.cs
- SupportsEventValidationAttribute.cs
- RestHandlerFactory.cs
- CompilerState.cs
- unsafeIndexingFilterStream.cs
- ContactManager.cs
- HtmlForm.cs
- DriveNotFoundException.cs
- PerformanceCounterCategory.cs
- DrawingContext.cs
- HttpListenerRequest.cs
- SessionStateModule.cs
- MonitorWrapper.cs
- TdsParser.cs
- SqlCacheDependencyDatabaseCollection.cs
- XmlAnyElementAttribute.cs
- TypeSystem.cs
- UpdateTracker.cs
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- FormsAuthenticationUser.cs
- CodeTypeDeclaration.cs
- DockingAttribute.cs
- DependencyPropertyDescriptor.cs
- BaseTemplateCodeDomTreeGenerator.cs
- SelectionRange.cs
- WebPartManagerDesigner.cs
- GlyphRun.cs
- HttpVersion.cs
- HttpHandlerActionCollection.cs
- MenuStrip.cs
- EntitySet.cs
- CompressedStack.cs
- XPathSingletonIterator.cs