Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Markup / TemplateComponentConnector.cs / 1 / TemplateComponentConnector.cs
/****************************************************************************\ * * File: OptimizedTemplateComponentConnector.cs * * Purpose: Provides an IComponentConnector which is used in instantiation * of optimized template content. * * Copyright (C) 2005 by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System; using System.Xml; using System.IO; using System.Windows; using System.Windows.Media; using System.Windows.Navigation; using System.Text; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media.Animation; using System.Diagnostics; using System.Reflection; using System.Windows.Threading; using System.Windows.Data; using System.Globalization; using MS.Utility; namespace System.Windows.Markup { // This class provides an IComponentConnector implementation for use during instantiation // of optimized template content. It is given an IComponentConnector, and most calls are // just forwarded to it. But it is also given an IStyleConnector, and calls to Connect // are sent there instead. internal class TemplateComponentConnector : IComponentConnector { internal TemplateComponentConnector( IComponentConnector componentConnector, IStyleConnector styleConnector ) { _styleConnector = styleConnector; _componentConnector = componentConnector; } public void InitializeComponent() { _componentConnector.InitializeComponent(); } public void Connect(int connectionId, object target) { // Calls to IComponentConnector.Connect from template content get forwarded // to the outer style connector (when we have one). if (_styleConnector != null) { _styleConnector.Connect(connectionId, target); } else { _componentConnector.Connect(connectionId, target); } } private IStyleConnector _styleConnector; private IComponentConnector _componentConnector; } } // 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
- BaseConfigurationRecord.cs
- SessionPageStatePersister.cs
- DataGridViewCellStateChangedEventArgs.cs
- BamlStream.cs
- HitTestDrawingContextWalker.cs
- Predicate.cs
- WindowAutomationPeer.cs
- ModelItemDictionaryImpl.cs
- DbConnectionPoolGroup.cs
- NativeWindow.cs
- WebHeaderCollection.cs
- WinCategoryAttribute.cs
- Events.cs
- HighContrastHelper.cs
- DataServiceEntityAttribute.cs
- DefaultValidator.cs
- ContentFilePart.cs
- FileLogRecordHeader.cs
- IdentityReference.cs
- MappingException.cs
- UIElementPropertyUndoUnit.cs
- AppearanceEditorPart.cs
- CollectionChangedEventManager.cs
- SqlColumnizer.cs
- PropertyInformationCollection.cs
- InputProcessorProfiles.cs
- HelpFileFileNameEditor.cs
- StandardOleMarshalObject.cs
- InputQueueChannel.cs
- IODescriptionAttribute.cs
- PartialCachingControl.cs
- IncomingWebResponseContext.cs
- AnnotationResourceChangedEventArgs.cs
- AdCreatedEventArgs.cs
- DES.cs
- Merger.cs
- DocumentsTrace.cs
- EntityViewGenerator.cs
- ResizingMessageFilter.cs
- SrgsElementFactory.cs
- EntityProxyTypeInfo.cs
- _RegBlobWebProxyDataBuilder.cs
- LineVisual.cs
- WebPartConnectVerb.cs
- DiagnosticsElement.cs
- PingOptions.cs
- xmlglyphRunInfo.cs
- Dynamic.cs
- DataTablePropertyDescriptor.cs
- SimpleHandlerFactory.cs
- ZoneMembershipCondition.cs
- ProcessModuleCollection.cs
- ClusterRegistryConfigurationProvider.cs
- PackagingUtilities.cs
- FileUtil.cs
- ContainsSearchOperator.cs
- InvalidCommandTreeException.cs
- NullableDoubleSumAggregationOperator.cs
- GlyphRunDrawing.cs
- DataGridRow.cs
- ZipPackage.cs
- ClientTarget.cs
- SerializableReadOnlyDictionary.cs
- PresentationSource.cs
- StylusTouchDevice.cs
- TextLine.cs
- ScriptControl.cs
- SectionInput.cs
- ColumnReorderedEventArgs.cs
- HtmlTextArea.cs
- Crc32.cs
- NavigationProperty.cs
- XPathException.cs
- DependencyPropertyValueSerializer.cs
- Point3DValueSerializer.cs
- OrderedHashRepartitionEnumerator.cs
- ConfigXmlText.cs
- PropertyNames.cs
- CheckedPointers.cs
- CustomCategoryAttribute.cs
- SrgsElementFactoryCompiler.cs
- RelatedEnd.cs
- Slider.cs
- TextTreeRootTextBlock.cs
- VScrollProperties.cs
- EndpointFilterProvider.cs
- DecimalAnimationBase.cs
- CoreSwitches.cs
- TextContainer.cs
- CharacterBuffer.cs
- RemotingServices.cs
- HtmlTableRow.cs
- OlePropertyStructs.cs
- JsonFormatGeneratorStatics.cs
- InstanceOwnerException.cs
- Debug.cs
- StreamGeometryContext.cs
- HandleExceptionArgs.cs
- HttpApplicationFactory.cs
- GreaterThanOrEqual.cs