Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Markup / TemplateApplicationHelper.cs / 1 / TemplateApplicationHelper.cs
/****************************************************************************\ * * File: TemplateApplicationHelper.cs * * Copyright (C) 2005 by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using MS.Internal; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Windows.Markup; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Controls; using System.Collections.Specialized; namespace System.Windows { //+--------------------------------------------------------------------------------------------- // // Class TemplateApplicationHelper // // This class is a BamlRecordReader which is used to help instantiate a template. // This BamlRecordReader is used to instantiate the unshareable content of the template, // and we override SetDependencyValue here so that we can set values into // the FE's special store for ParentTemplate values. // //+--------------------------------------------------------------------------------------------- internal class TemplateApplicationHelper : BamlRecordReader { internal TemplateApplicationHelper ( ) { RootList = new ArrayList(1); } // // Initialization is separate from the constructer so that it can be called // repeatedly. // internal void Initialize( ParserContext parserContext, object templatedParent ) { ParserContext = parserContext; _templatedParent = (DependencyObject) templatedParent; RootElement = null; if( RootList != null ) { RootList.Clear(); } ContextStack.Clear(); ComponentConnector = null; } /***************************************************************************\ * * TemplateBamlRecordReader.ReadDeferableContentStart * * Called when parsing the deferable content start element. * When we have a ResourceDictionary inside template content, * we need to retrieve the cached values buffer and supply it * do the ResourceDictionary so that it can use it to * RealizeDeferredContent. * \***************************************************************************/ internal override void ReadDeferableContentStart( BamlDeferableContentStartRecord bamlRecord) { ResourceDictionary dictionary = GetDictionaryFromContext(CurrentContext, true /*toInsert*/) as ResourceDictionary; if (dictionary != null) { // Read and create the keys and the static resource // objects for this dictionary ArrayList defKeyList; List
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypeSystemProvider.cs
- SharedStatics.cs
- EdmMember.cs
- XmlDomTextWriter.cs
- CultureSpecificStringDictionary.cs
- PeerApplication.cs
- SubpageParagraph.cs
- FileClassifier.cs
- TableDetailsCollection.cs
- SpoolingTaskBase.cs
- MessagePropertyAttribute.cs
- WebPartDisplayModeCancelEventArgs.cs
- CompiledXpathExpr.cs
- Stacktrace.cs
- TextPointerBase.cs
- InstanceKeyNotReadyException.cs
- RequestDescription.cs
- AvTrace.cs
- DocumentViewerBase.cs
- SharedDp.cs
- ComponentConverter.cs
- Path.cs
- ScriptManagerProxy.cs
- FileStream.cs
- HelpEvent.cs
- EasingQuaternionKeyFrame.cs
- WebPartAuthorizationEventArgs.cs
- EntityCollection.cs
- ListControlConvertEventArgs.cs
- MarkupProperty.cs
- DesignerActionVerbItem.cs
- ReferencedAssembly.cs
- DataGridViewCellEventArgs.cs
- Viewport2DVisual3D.cs
- JournalEntryStack.cs
- Quaternion.cs
- DispatcherTimer.cs
- PictureBox.cs
- ZoneMembershipCondition.cs
- XsdValidatingReader.cs
- FusionWrap.cs
- ReadOnlyHierarchicalDataSource.cs
- ShapingWorkspace.cs
- SqlError.cs
- XPathMessageFilterElement.cs
- SelectionChangedEventArgs.cs
- TextServicesProperty.cs
- PropertyMapper.cs
- ProgressBar.cs
- RegexWorker.cs
- ProviderSettings.cs
- ScriptReference.cs
- PenLineCapValidation.cs
- TreeNodeEventArgs.cs
- RenderTargetBitmap.cs
- PositiveTimeSpanValidator.cs
- VirtualizedCellInfoCollection.cs
- EntityDataSourceReferenceGroup.cs
- OdbcException.cs
- ImageButton.cs
- CancellationHandlerDesigner.cs
- ModelItem.cs
- XmlSerializationGeneratedCode.cs
- EmulateRecognizeCompletedEventArgs.cs
- ByteStream.cs
- ViewValidator.cs
- ErrorRuntimeConfig.cs
- TextRangeEditLists.cs
- PKCS1MaskGenerationMethod.cs
- HttpHandlerAction.cs
- Privilege.cs
- RoutedEventConverter.cs
- Transform.cs
- _SslSessionsCache.cs
- NativeWrapper.cs
- InternalConfigConfigurationFactory.cs
- QuadTree.cs
- TextBoxLine.cs
- AccessText.cs
- TabPage.cs
- XmlNode.cs
- ServiceAuthorizationBehavior.cs
- UMPAttributes.cs
- SHA256.cs
- DataServiceHost.cs
- DataRowExtensions.cs
- NetPeerTcpBindingCollectionElement.cs
- DPAPIProtectedConfigurationProvider.cs
- SamlEvidence.cs
- SystemIcmpV4Statistics.cs
- DesignerTextViewAdapter.cs
- InvokePatternIdentifiers.cs
- QilReference.cs
- ThreadTrace.cs
- Int64.cs
- TraceProvider.cs
- DynamicDataRouteHandler.cs
- TemplateControlBuildProvider.cs
- LinearGradientBrush.cs
- AssociationTypeEmitter.cs