Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Markup / Baml2006 / Baml2006ReaderContext.cs / 1305600 / Baml2006ReaderContext.cs
using System; using System.Collections.Generic; using System.Xaml; using MS.Internal.Xaml.Context; namespace System.Windows.Baml2006 { internal class Baml2006ReaderContext { public Baml2006ReaderContext(Baml2006SchemaContext schemaContext) { if (schemaContext == null) { throw new ArgumentNullException("schemaContext"); } _schemaContext = schemaContext; } public Baml2006SchemaContext SchemaContext { get { return _schemaContext; } } public void PushScope() { _stack.PushScope(); CurrentFrame.FreezeFreezables = PreviousFrame.FreezeFreezables; } public void PopScope() { _stack.PopScope(); } public Baml2006ReaderFrame CurrentFrame { get { return _stack.CurrentFrame; } } public Baml2006ReaderFrame PreviousFrame { get { return _stack.PreviousFrame; } } public ListKeyList { get; set; } public int CurrentKey { get; set; } public KeyRecord LastKey { get { if (KeyList != null && KeyList.Count > 0) { return KeyList[KeyList.Count - 1]; } return null; } } public bool InsideKeyRecord { get; set; } public bool InsideStaticResource { get; set; } public int TemplateStartDepth { get; set; } private Baml2006SchemaContext _schemaContext; private XamlContextStack _stack = new XamlContextStack (() => new Baml2006ReaderFrame()); } } // 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
- Empty.cs
- Msec.cs
- MaskDesignerDialog.cs
- RuleInfoComparer.cs
- InvokePattern.cs
- PropertyEmitterBase.cs
- StylusPointPropertyUnit.cs
- HelpProvider.cs
- SystemWebExtensionsSectionGroup.cs
- RoutedCommand.cs
- RegexGroupCollection.cs
- BrowserInteropHelper.cs
- StructuredType.cs
- ConvertersCollection.cs
- ObjectDataSource.cs
- PackageRelationshipSelector.cs
- DataObject.cs
- XPathQueryGenerator.cs
- BaseValidator.cs
- SignedPkcs7.cs
- MsmqIntegrationValidationBehavior.cs
- SafeReadContext.cs
- StylusPointDescription.cs
- SafeNativeMethods.cs
- FileDialog_Vista_Interop.cs
- FontFamilyValueSerializer.cs
- RuleSetCollection.cs
- XmlObjectSerializerReadContextComplex.cs
- SignedXml.cs
- BuildProviderAppliesToAttribute.cs
- SqlCharStream.cs
- SqlDataSourceCommandEventArgs.cs
- FamilyMap.cs
- ClientCultureInfo.cs
- PrinterResolution.cs
- SelectionEditingBehavior.cs
- ThousandthOfEmRealPoints.cs
- ScrollBar.cs
- RemotingConfigParser.cs
- BrowserDefinitionCollection.cs
- DataListItemEventArgs.cs
- ValidatorAttribute.cs
- CursorConverter.cs
- SHA512.cs
- LinqTreeNodeEvaluator.cs
- EntityDesignerBuildProvider.cs
- EntityDataSourceReferenceGroup.cs
- SynchronizedDispatch.cs
- SqlBooleanMismatchVisitor.cs
- EtwProvider.cs
- DirectoryNotFoundException.cs
- WCFServiceClientProxyGenerator.cs
- FileLogRecordStream.cs
- WebPartsPersonalization.cs
- InputReport.cs
- DataPagerFieldCollection.cs
- DataGridViewLinkColumn.cs
- GregorianCalendar.cs
- DynamicQueryStringParameter.cs
- RequestChannelBinder.cs
- SqlDataReader.cs
- TextureBrush.cs
- XslNumber.cs
- StateBag.cs
- WebPartTracker.cs
- DtdParser.cs
- WebServiceErrorEvent.cs
- RequestQueue.cs
- SHA1.cs
- HostingEnvironmentSection.cs
- ILGenerator.cs
- ActivityDesigner.cs
- DocumentScope.cs
- RelatedEnd.cs
- SharedDp.cs
- X509Extension.cs
- PrintDocument.cs
- DPCustomTypeDescriptor.cs
- PackageDigitalSignatureManager.cs
- HttpWebRequest.cs
- StringSorter.cs
- dataobject.cs
- BinaryObjectReader.cs
- ImplicitInputBrush.cs
- BuilderElements.cs
- Path.cs
- RadioButtonRenderer.cs
- FaultCallbackWrapper.cs
- HttpContext.cs
- Comparer.cs
- UITypeEditor.cs
- DataPagerFieldCommandEventArgs.cs
- OleDbMetaDataFactory.cs
- ValidationService.cs
- RoleManagerSection.cs
- ListBindingHelper.cs
- SystemThemeKey.cs
- NodeFunctions.cs
- TextRenderer.cs
- EventProxy.cs