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
- Token.cs
- HwndStylusInputProvider.cs
- XPathDocumentIterator.cs
- SiteMapNodeItem.cs
- MyContact.cs
- CommandHelpers.cs
- ElapsedEventArgs.cs
- WriteableBitmap.cs
- CurrentTimeZone.cs
- ProxyElement.cs
- TemplateControl.cs
- InstanceKey.cs
- ActiveXSite.cs
- StylusPlugin.cs
- DependencyObjectType.cs
- InvokeBase.cs
- Expressions.cs
- CompletedAsyncResult.cs
- RequiredFieldValidator.cs
- HtmlInputSubmit.cs
- DuplicateContext.cs
- Options.cs
- WindowsIdentity.cs
- FixedPageProcessor.cs
- CFStream.cs
- HttpListenerRequest.cs
- ResourceDescriptionAttribute.cs
- ThrowHelper.cs
- SqlException.cs
- ActivityCodeGenerator.cs
- BufferedStream2.cs
- Stroke.cs
- CodeIterationStatement.cs
- ProgressPage.cs
- MasterPageParser.cs
- NonParentingControl.cs
- Helpers.cs
- InstanceContextManager.cs
- Opcode.cs
- MSHTMLHostUtil.cs
- WorkflowRuntimeServiceElement.cs
- SAPIEngineTypes.cs
- UInt16.cs
- XmlSchemaSimpleContentRestriction.cs
- FocusWithinProperty.cs
- SimpleBitVector32.cs
- ClientApiGenerator.cs
- TransactionScopeDesigner.cs
- ApplyHostConfigurationBehavior.cs
- FilterUserControlBase.cs
- Qualifier.cs
- SourceFileBuildProvider.cs
- CookieParameter.cs
- DataObjectSettingDataEventArgs.cs
- AccessorTable.cs
- ZipIOCentralDirectoryBlock.cs
- OracleTimeSpan.cs
- IncrementalCompileAnalyzer.cs
- WhitespaceRuleLookup.cs
- CacheModeValueSerializer.cs
- StringAnimationUsingKeyFrames.cs
- FontStyles.cs
- BmpBitmapEncoder.cs
- CatalogZone.cs
- ObjectContext.cs
- RoutedEvent.cs
- ListViewDeletedEventArgs.cs
- SoapHeaders.cs
- SqlDataSourceQuery.cs
- DataGridViewIntLinkedList.cs
- KeyMatchBuilder.cs
- EnvelopeVersion.cs
- Tablet.cs
- FontSource.cs
- ToolStripArrowRenderEventArgs.cs
- TablePattern.cs
- DrawingContextDrawingContextWalker.cs
- Parameter.cs
- InputQueueChannelAcceptor.cs
- RoutedEventValueSerializer.cs
- MembershipPasswordException.cs
- HitTestDrawingContextWalker.cs
- PersonalizationAdministration.cs
- ArraySubsetEnumerator.cs
- ExpressionBuilder.cs
- EntityType.cs
- WindowsTreeView.cs
- HandoffBehavior.cs
- HtmlControl.cs
- TempFiles.cs
- ThumbButtonInfoCollection.cs
- ACL.cs
- ConfigXmlComment.cs
- SqlNamer.cs
- RelatedEnd.cs
- DefinitionUpdate.cs
- DecodeHelper.cs
- SequentialWorkflowRootDesigner.cs
- DataGridViewSelectedCellCollection.cs
- PerformanceCounter.cs