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
- RectangleConverter.cs
- DSACryptoServiceProvider.cs
- RIPEMD160Managed.cs
- RemoteX509AsymmetricSecurityKey.cs
- MemberCollection.cs
- GraphicsContext.cs
- DeleteCardRequest.cs
- NativeWindow.cs
- OpenTypeLayoutCache.cs
- InertiaRotationBehavior.cs
- TableRowsCollectionEditor.cs
- EntityParameter.cs
- StandardOleMarshalObject.cs
- XmlSchemaSimpleContentRestriction.cs
- DSASignatureDeformatter.cs
- WorkflowCreationContext.cs
- DataBoundLiteralControl.cs
- ModelUIElement3D.cs
- PrincipalPermission.cs
- CacheOutputQuery.cs
- PolyBezierSegment.cs
- LinkUtilities.cs
- OleDbRowUpdatedEvent.cs
- HtmlLink.cs
- DataSysAttribute.cs
- GeneralTransformGroup.cs
- CodeConditionStatement.cs
- SkipQueryOptionExpression.cs
- KeyedHashAlgorithm.cs
- ControllableStoryboardAction.cs
- RequestQueue.cs
- RelatedView.cs
- StatusCommandUI.cs
- EnumUnknown.cs
- DataGridItemCollection.cs
- CreateParams.cs
- XmlSubtreeReader.cs
- SessionEndedEventArgs.cs
- TreeViewImageGenerator.cs
- User.cs
- MetadataCache.cs
- ValidatedControlConverter.cs
- BindingNavigator.cs
- WMIInterop.cs
- InstancePersistenceException.cs
- GenericWebPart.cs
- XamlStream.cs
- RunClient.cs
- ActivityDefaults.cs
- SimpleApplicationHost.cs
- CanonicalFontFamilyReference.cs
- SHA384Managed.cs
- PropertyMetadata.cs
- DrawingBrush.cs
- _ConnectStream.cs
- JsonReaderWriterFactory.cs
- FocusWithinProperty.cs
- translator.cs
- IIS7UserPrincipal.cs
- DataGridColumnHeaderCollection.cs
- RootProfilePropertySettingsCollection.cs
- ImageIndexConverter.cs
- XmlSerializerNamespaces.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- AnimationStorage.cs
- HttpValueCollection.cs
- SafeNativeMethods.cs
- _BasicClient.cs
- Assert.cs
- ItemsPanelTemplate.cs
- NullableDoubleSumAggregationOperator.cs
- LinkLabelLinkClickedEvent.cs
- MaskedTextBox.cs
- TextBoxBase.cs
- ReadOnlyMetadataCollection.cs
- Geometry3D.cs
- RegexCompilationInfo.cs
- ObjectViewEntityCollectionData.cs
- LabelEditEvent.cs
- NullableBoolConverter.cs
- MatrixIndependentAnimationStorage.cs
- TdsParser.cs
- ConfigurationSectionGroupCollection.cs
- FileVersion.cs
- ToolStripScrollButton.cs
- GridItemCollection.cs
- PropertyConverter.cs
- Tuple.cs
- RegionData.cs
- DisplayNameAttribute.cs
- GraphicsContainer.cs
- ProgressChangedEventArgs.cs
- EventProxy.cs
- GridItem.cs
- TraceContextEventArgs.cs
- InterleavedZipPartStream.cs
- AddressHeaderCollectionElement.cs
- BitmapDecoder.cs
- OperationAbortedException.cs
- CodeMethodReturnStatement.cs