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
- FacetDescription.cs
- NameValueConfigurationElement.cs
- DbException.cs
- Task.cs
- CodeMemberProperty.cs
- ReachPageContentCollectionSerializer.cs
- DataSourceSelectArguments.cs
- Substitution.cs
- ZipArchive.cs
- EmptyCollection.cs
- AutomationPropertyInfo.cs
- TextElementCollectionHelper.cs
- FieldNameLookup.cs
- Oci.cs
- TextRangeEdit.cs
- DataGridViewBand.cs
- DataObjectEventArgs.cs
- SvcMapFileSerializer.cs
- DropTarget.cs
- TypeExtensionSerializer.cs
- FontFamily.cs
- XPathArrayIterator.cs
- SeverityFilter.cs
- UmAlQuraCalendar.cs
- NameTable.cs
- ConstructorNeedsTagAttribute.cs
- RoleManagerEventArgs.cs
- SQLGuidStorage.cs
- WindowsAuthenticationEventArgs.cs
- CharAnimationUsingKeyFrames.cs
- DbParameterCollection.cs
- SiteMapNodeItem.cs
- GeometryHitTestResult.cs
- Rotation3D.cs
- MouseGestureConverter.cs
- DigitShape.cs
- MaskedTextBox.cs
- EntityViewContainer.cs
- HttpInputStream.cs
- FormCollection.cs
- StringPropertyBuilder.cs
- ClosableStream.cs
- XmlSchemaParticle.cs
- TemplateInstanceAttribute.cs
- CurrentChangedEventManager.cs
- AutomationPattern.cs
- ValueUnavailableException.cs
- XmlConvert.cs
- nulltextcontainer.cs
- IPAddressCollection.cs
- SqlCacheDependencyDatabaseCollection.cs
- ObjectDataSourceMethodEventArgs.cs
- DataBindingExpressionBuilder.cs
- ToolboxBitmapAttribute.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- EditorPartDesigner.cs
- ControlBindingsCollection.cs
- Visitor.cs
- XPathEmptyIterator.cs
- ReaderWriterLockWrapper.cs
- CommentGlyph.cs
- EpmCustomContentSerializer.cs
- PolicyValidationException.cs
- ImageSource.cs
- XmlReaderDelegator.cs
- NetDataContractSerializer.cs
- UriPrefixTable.cs
- ApplicationGesture.cs
- DiscoveryClientReferences.cs
- TreePrinter.cs
- InputProviderSite.cs
- DesignerImageAdapter.cs
- IndexedString.cs
- WebPartZoneBase.cs
- EventRecord.cs
- XmlRawWriterWrapper.cs
- DynamicPropertyReader.cs
- EventItfInfo.cs
- StopStoryboard.cs
- ScriptingJsonSerializationSection.cs
- DbProviderFactories.cs
- Preprocessor.cs
- ConfigurationHandlersInstallComponent.cs
- SendKeys.cs
- RichTextBoxConstants.cs
- SqlDependency.cs
- DesignerToolStripControlHost.cs
- _BasicClient.cs
- ResourcesGenerator.cs
- CompilerHelpers.cs
- Context.cs
- Color.cs
- CompilationSection.cs
- InvokeProviderWrapper.cs
- UIElementCollection.cs
- loginstatus.cs
- DataRowChangeEvent.cs
- ConnectionInterfaceCollection.cs
- UriSection.cs
- CustomMenuItemCollection.cs