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
- UIElementAutomationPeer.cs
- DatePickerDateValidationErrorEventArgs.cs
- mediapermission.cs
- ResourceDisplayNameAttribute.cs
- SqlClientWrapperSmiStream.cs
- QuaternionKeyFrameCollection.cs
- StorageEndPropertyMapping.cs
- TextTreeUndo.cs
- SafeBitVector32.cs
- ClientScriptManager.cs
- PropertyFilterAttribute.cs
- VisualStyleElement.cs
- TemplateContent.cs
- Canvas.cs
- FormViewDeleteEventArgs.cs
- ScrollPattern.cs
- PointConverter.cs
- httpstaticobjectscollection.cs
- EntityContainerEmitter.cs
- PerfService.cs
- NamespaceEmitter.cs
- DataGridViewCellMouseEventArgs.cs
- _ProxyChain.cs
- BrowserCapabilitiesFactoryBase.cs
- BaseTemplateParser.cs
- ExpressionBindingsDialog.cs
- Expression.cs
- QuadraticBezierSegment.cs
- StatusBarPanel.cs
- Style.cs
- sortedlist.cs
- DynamicPropertyHolder.cs
- UIElement.cs
- DragEvent.cs
- FloaterParagraph.cs
- CodeDirectiveCollection.cs
- EditorPartCollection.cs
- SEHException.cs
- ConnectionStringsExpressionBuilder.cs
- Roles.cs
- LabelLiteral.cs
- PageThemeParser.cs
- RowTypeElement.cs
- WsatServiceCertificate.cs
- Directory.cs
- QilInvokeEarlyBound.cs
- ConstraintEnumerator.cs
- DataGridState.cs
- webbrowsersite.cs
- ToolStripDropTargetManager.cs
- OleDbParameterCollection.cs
- ImageSourceValueSerializer.cs
- DiagnosticTrace.cs
- DataServiceHostFactory.cs
- WindowHelperService.cs
- RuleInfoComparer.cs
- TdsRecordBufferSetter.cs
- PathGeometry.cs
- HeaderElement.cs
- XmlImplementation.cs
- Win32.cs
- ComplexPropertyEntry.cs
- WorkflowNamespace.cs
- METAHEADER.cs
- ThemeableAttribute.cs
- LexicalChunk.cs
- LoopExpression.cs
- DataSetFieldSchema.cs
- X509SecurityTokenAuthenticator.cs
- WrappedIUnknown.cs
- GradientStop.cs
- EntitySetDataBindingList.cs
- TabletDevice.cs
- SafeFileHandle.cs
- recordstatefactory.cs
- ActiveDocumentEvent.cs
- EntityContainerAssociationSet.cs
- DocumentsTrace.cs
- DataGridViewMethods.cs
- SystemResourceHost.cs
- BasicExpandProvider.cs
- EntitySqlQueryState.cs
- MethodBuilderInstantiation.cs
- PlatformNotSupportedException.cs
- XmlEventCache.cs
- ContentWrapperAttribute.cs
- IListConverters.cs
- AnnotationResource.cs
- DateTimeFormatInfo.cs
- ToolBar.cs
- VectorCollectionValueSerializer.cs
- XmlSchemaComplexContent.cs
- QilTypeChecker.cs
- DeviceSpecificChoiceCollection.cs
- VBCodeProvider.cs
- ThrowHelper.cs
- XmlSignatureProperties.cs
- NativeObjectSecurity.cs
- ValidationErrorCollection.cs
- BaseResourcesBuildProvider.cs