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
- TableDesigner.cs
- ComponentChangedEvent.cs
- XmlElementAttributes.cs
- TreeBuilder.cs
- RangeContentEnumerator.cs
- MessageQueue.cs
- ScopelessEnumAttribute.cs
- TraceProvider.cs
- TextRangeProviderWrapper.cs
- AutomationIdentifier.cs
- DateTimeValueSerializer.cs
- ImageCreator.cs
- PageHandlerFactory.cs
- ExclusiveTcpTransportManager.cs
- WindowsAuthenticationEventArgs.cs
- SignedInfo.cs
- XhtmlBasicCalendarAdapter.cs
- ItemsPanelTemplate.cs
- EntityTypeEmitter.cs
- TypeDescriptionProvider.cs
- TableLayoutPanelCellPosition.cs
- ProcessThread.cs
- TemplateEditingFrame.cs
- RuleRefElement.cs
- WebPartTransformerAttribute.cs
- ToolStripContainer.cs
- ContextDataSource.cs
- GeometryGroup.cs
- GenericEnumConverter.cs
- WmlLiteralTextAdapter.cs
- DataGridTextBoxColumn.cs
- MarkupCompilePass1.cs
- WsdlInspector.cs
- StringUtil.cs
- PathData.cs
- OracleParameter.cs
- SecurityRuntime.cs
- NetNamedPipeSecurityElement.cs
- HwndSubclass.cs
- TextBoxBase.cs
- TriggerAction.cs
- SmiTypedGetterSetter.cs
- StringAnimationBase.cs
- MenuItemStyle.cs
- fixedPageContentExtractor.cs
- CacheOutputQuery.cs
- DecoderExceptionFallback.cs
- HasCopySemanticsAttribute.cs
- KernelTypeValidation.cs
- ToolTipService.cs
- ServerValidateEventArgs.cs
- SAPICategories.cs
- NumberFormatInfo.cs
- MemberRestriction.cs
- ToolStripDropDownMenu.cs
- ProxyWebPartManager.cs
- CombinedGeometry.cs
- DefaultMemberAttribute.cs
- ResourceKey.cs
- TextParaClient.cs
- TrackingStringDictionary.cs
- ListBoxItemWrapperAutomationPeer.cs
- GridViewRowPresenter.cs
- FileDialogCustomPlace.cs
- VectorCollection.cs
- ResourceSet.cs
- _ListenerAsyncResult.cs
- MetadataPropertyCollection.cs
- PasswordDeriveBytes.cs
- PageStatePersister.cs
- Form.cs
- sqlmetadatafactory.cs
- MultiByteCodec.cs
- RegexBoyerMoore.cs
- ListViewItemEventArgs.cs
- Attributes.cs
- SignatureHelper.cs
- XmlUtilWriter.cs
- DataColumnMapping.cs
- IdentityHolder.cs
- ContentTextAutomationPeer.cs
- PropertyToken.cs
- figurelength.cs
- SmiEventSink_DeferedProcessing.cs
- HttpWebRequestElement.cs
- SoapExtensionImporter.cs
- FillBehavior.cs
- SystemIPAddressInformation.cs
- SqlWebEventProvider.cs
- uribuilder.cs
- Trace.cs
- DebugView.cs
- SchemaElementLookUpTableEnumerator.cs
- ErrorFormatterPage.cs
- BasicHttpMessageCredentialType.cs
- LinqDataView.cs
- OdbcConnectionOpen.cs
- HtmlImage.cs
- Rectangle.cs
- LineVisual.cs