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
- SerializationTrace.cs
- DataRelationPropertyDescriptor.cs
- OleDbParameterCollection.cs
- HtmlDocument.cs
- LinkClickEvent.cs
- SeverityFilter.cs
- ThreadInterruptedException.cs
- VideoDrawing.cs
- SemanticResultValue.cs
- SmtpNegotiateAuthenticationModule.cs
- TraceFilter.cs
- ClientRolePrincipal.cs
- DecoderFallbackWithFailureFlag.cs
- FixedSOMFixedBlock.cs
- JsonClassDataContract.cs
- X509CertificateChain.cs
- CustomBindingCollectionElement.cs
- XmlSecureResolver.cs
- DocumentPageViewAutomationPeer.cs
- VScrollBar.cs
- XmlNamespaceManager.cs
- BaseParser.cs
- SessionPageStatePersister.cs
- ImageSourceValueSerializer.cs
- DataGridState.cs
- safePerfProviderHandle.cs
- HwndAppCommandInputProvider.cs
- XmlHierarchicalDataSourceView.cs
- DataGridBoolColumn.cs
- shaper.cs
- DetailsViewPageEventArgs.cs
- MemberAccessException.cs
- StylusPlugInCollection.cs
- XslCompiledTransform.cs
- SqlStatistics.cs
- ActivationArguments.cs
- RoleManagerModule.cs
- ExtensionQuery.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- ObjectParameter.cs
- AuthenticationModuleElement.cs
- Drawing.cs
- DesignConnection.cs
- SHA1.cs
- BCLDebug.cs
- WindowsSlider.cs
- RepeatBehaviorConverter.cs
- ManagementOptions.cs
- DbBuffer.cs
- TabItemAutomationPeer.cs
- SoapCodeExporter.cs
- EventLog.cs
- HandlerMappingMemo.cs
- ColumnResult.cs
- XmlSchema.cs
- NetTcpBindingElement.cs
- CacheOutputQuery.cs
- ConfigXmlText.cs
- UriTemplateHelpers.cs
- StateMachineWorkflowDesigner.cs
- HighlightVisual.cs
- TextElementEditingBehaviorAttribute.cs
- remotingproxy.cs
- CellTreeNode.cs
- TemplateBaseAction.cs
- RSAPKCS1KeyExchangeFormatter.cs
- TextFormatterHost.cs
- UIElement.cs
- HorizontalAlignConverter.cs
- PersonalizablePropertyEntry.cs
- EventDescriptor.cs
- WizardPanel.cs
- SQLMoney.cs
- ZeroOpNode.cs
- MergeEnumerator.cs
- MeasurementDCInfo.cs
- TrackingRecord.cs
- MemberHolder.cs
- ArgumentValidation.cs
- DirectionalLight.cs
- MainMenu.cs
- _Connection.cs
- SqlDataSourceCommandParser.cs
- SequenceDesigner.cs
- ProfileProvider.cs
- ToolStripPanelRenderEventArgs.cs
- EventDescriptorCollection.cs
- SingleAnimation.cs
- DeclarativeCatalogPart.cs
- PrivilegeNotHeldException.cs
- CodeStatement.cs
- XPathSelfQuery.cs
- XmlSchemaObjectTable.cs
- FormViewModeEventArgs.cs
- XmlTextEncoder.cs
- ConnectionConsumerAttribute.cs
- ToolStripCollectionEditor.cs
- ClockController.cs
- SourceSwitch.cs
- BaseDataList.cs