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
- ListMarkerLine.cs
- SafeLocalMemHandle.cs
- DataGridViewColumn.cs
- DateTimeValueSerializerContext.cs
- NetCodeGroup.cs
- RangeValidator.cs
- CodeActivityMetadata.cs
- HostProtectionPermission.cs
- _OverlappedAsyncResult.cs
- ThreadStartException.cs
- altserialization.cs
- ObjectCloneHelper.cs
- ConstNode.cs
- ConstraintStruct.cs
- FormViewInsertedEventArgs.cs
- DesignerOptionService.cs
- MediaTimeline.cs
- UDPClient.cs
- RemoteWebConfigurationHost.cs
- DbDeleteCommandTree.cs
- SrgsText.cs
- AudioFormatConverter.cs
- TargetConverter.cs
- PageBuildProvider.cs
- DataViewSetting.cs
- ReflectionTypeLoadException.cs
- XmlValueConverter.cs
- TabItemWrapperAutomationPeer.cs
- SourceFilter.cs
- DispatcherHookEventArgs.cs
- IntSecurity.cs
- ParenthesizePropertyNameAttribute.cs
- AnimationTimeline.cs
- SiteMapProvider.cs
- XmlSchemaElement.cs
- CancelEventArgs.cs
- DelimitedListTraceListener.cs
- PerformanceCountersBase.cs
- AnnotationHighlightLayer.cs
- PointAnimationClockResource.cs
- TailCallAnalyzer.cs
- ExecutionEngineException.cs
- SelectionGlyph.cs
- NonPrimarySelectionGlyph.cs
- Run.cs
- CodeIdentifiers.cs
- InvokeMethodActivity.cs
- XPathNavigator.cs
- LowerCaseStringConverter.cs
- DesignTimeParseData.cs
- InstancePersistenceCommandException.cs
- ErrorInfoXmlDocument.cs
- CodeDirectionExpression.cs
- Pointer.cs
- MasterPageCodeDomTreeGenerator.cs
- WindowsScrollBarBits.cs
- StandardCommands.cs
- StateMachine.cs
- AsymmetricSignatureDeformatter.cs
- WebPartsSection.cs
- TextEncodedRawTextWriter.cs
- MenuItemCollection.cs
- ThousandthOfEmRealPoints.cs
- ElementFactory.cs
- ClassGenerator.cs
- CardSpaceSelector.cs
- LayoutEditorPart.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- DocumentViewerAutomationPeer.cs
- DocumentXmlWriter.cs
- Calendar.cs
- EntityDataSourceDataSelection.cs
- Underline.cs
- LogicalChannelCollection.cs
- AppliedDeviceFiltersDialog.cs
- SymmetricKeyWrap.cs
- SHA1.cs
- ThreadStartException.cs
- RC2CryptoServiceProvider.cs
- invalidudtexception.cs
- Inline.cs
- QueryCacheKey.cs
- Schema.cs
- ActivityExecutionWorkItem.cs
- BooleanFunctions.cs
- ElementNotAvailableException.cs
- MetabaseServerConfig.cs
- TextRunTypographyProperties.cs
- FilteredReadOnlyMetadataCollection.cs
- MetadataItem_Static.cs
- SqlGatherConsumedAliases.cs
- ScriptingJsonSerializationSection.cs
- LambdaCompiler.Generated.cs
- LoginView.cs
- TemplateBindingExtension.cs
- ApplicationBuildProvider.cs
- FileNameEditor.cs
- TagPrefixAttribute.cs
- TextElement.cs
- CodeDOMProvider.cs