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
- ColumnTypeConverter.cs
- Int32AnimationUsingKeyFrames.cs
- WebServiceHost.cs
- TagPrefixCollection.cs
- LayoutUtils.cs
- SQLString.cs
- ParameterElementCollection.cs
- DetailsViewDeleteEventArgs.cs
- SoapEnvelopeProcessingElement.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- GridSplitterAutomationPeer.cs
- CheckBoxPopupAdapter.cs
- XmlChildNodes.cs
- OdbcError.cs
- UpdateCompiler.cs
- HttpProfileBase.cs
- assemblycache.cs
- ActivityTypeCodeDomSerializer.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- HwndStylusInputProvider.cs
- RightsManagementEncryptedStream.cs
- Column.cs
- UpdatePanelControlTrigger.cs
- ExecutionEngineException.cs
- ToolStripContentPanelDesigner.cs
- SafeRightsManagementPubHandle.cs
- BulletedList.cs
- StreamWriter.cs
- TreeNodeSelectionProcessor.cs
- SerializationEventsCache.cs
- MissingFieldException.cs
- CollaborationHelperFunctions.cs
- RelationshipType.cs
- HtmlInputFile.cs
- ServicePerformanceCounters.cs
- CollectionView.cs
- ListViewAutomationPeer.cs
- RichTextBoxContextMenu.cs
- OleDbEnumerator.cs
- LinqDataSourceStatusEventArgs.cs
- PersonalizableTypeEntry.cs
- XmlParserContext.cs
- DetailsViewRowCollection.cs
- OutputWindow.cs
- MouseButtonEventArgs.cs
- TimeEnumHelper.cs
- ConnectionString.cs
- HashFinalRequest.cs
- AssemblyHash.cs
- X509Certificate2Collection.cs
- HttpHandlerAction.cs
- CompilationLock.cs
- DBConcurrencyException.cs
- XsdBuilder.cs
- XmlPreloadedResolver.cs
- ListViewSelectEventArgs.cs
- Connection.cs
- HttpValueCollection.cs
- EndpointIdentity.cs
- LongSumAggregationOperator.cs
- IgnoreFlushAndCloseStream.cs
- TrustManagerPromptUI.cs
- ListBase.cs
- _FixedSizeReader.cs
- BuilderPropertyEntry.cs
- ColumnWidthChangedEvent.cs
- XmlQueryContext.cs
- SmtpLoginAuthenticationModule.cs
- EventArgs.cs
- Calendar.cs
- AstNode.cs
- ServiceDescription.cs
- DoubleLink.cs
- XmlEncodedRawTextWriter.cs
- NonVisualControlAttribute.cs
- PointCollectionValueSerializer.cs
- WebPartChrome.cs
- TextRangeEditTables.cs
- Border.cs
- ContextInformation.cs
- Invariant.cs
- SiteMapSection.cs
- EnvironmentPermission.cs
- Rijndael.cs
- StorageTypeMapping.cs
- CompilationSection.cs
- InheritedPropertyDescriptor.cs
- ApplicationGesture.cs
- DataGridTablesFactory.cs
- RoutedEventConverter.cs
- MILUtilities.cs
- ListBoxItemAutomationPeer.cs
- IdentityReference.cs
- CookieProtection.cs
- UrlPath.cs
- QuaternionIndependentAnimationStorage.cs
- DataRelation.cs
- ObjectConverter.cs
- ManipulationPivot.cs
- Mapping.cs