Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Markup / Baml2006 / Baml2006ReaderFrame.cs / 1305600 / Baml2006ReaderFrame.cs
using System; using System.Collections.Generic; using System.Xaml; using System.Diagnostics; using MS.Internal.Xaml.Context; namespace System.Windows.Baml2006 { internal class Baml2006ReaderFrame : XamlFrame { protected Dictionary_namespaces; public Baml2006ReaderFrame() { DelayedConnectionId = -1; } public Baml2006ReaderFrame(Baml2006ReaderFrame source) { XamlType = source.XamlType; Member = source.Member; if (source._namespaces != null) { _namespaces = new Dictionary (source._namespaces); } } public override XamlFrame Clone() { return new Baml2006ReaderFrame(this); } public XamlType XamlType { get; set; } public XamlMember Member { get; set; } public KeyRecord Key { get; set; } public int DelayedConnectionId { get; set; } public XamlMember ContentProperty { get; set; } public bool FreezeFreezables { get; set; } public void AddNamespace(string prefix, string xamlNs) { if (null == _namespaces) { _namespaces = new Dictionary (); } _namespaces.Add(prefix, xamlNs); } public void SetNamespaces(Dictionary namespaces) { _namespaces = namespaces; } public bool TryGetNamespaceByPrefix(string prefix, out string xamlNs) { if (_namespaces != null && _namespaces.TryGetValue(prefix, out xamlNs)) { return true; } xamlNs = null; return false; } public bool TryGetPrefixByNamespace(string xamlNs, out string prefix) { if (_namespaces != null) { foreach (KeyValuePair pair in _namespaces) { if (pair.Value == xamlNs) { prefix = pair.Key; return true; } } } prefix = null; return false; } public override void Reset() { XamlType = null; Member = null; if (_namespaces != null) { _namespaces.Clear(); } Flags = Baml2006ReaderFrameFlags.None; LineNumber = 0; LineOffset = 0; IsDeferredContent = false; Key = null; DelayedConnectionId = -1; ContentProperty = null; } public Baml2006ReaderFrameFlags Flags { get; set; } public int LineNumber { get; set; } public int LineOffset { get; set; } public bool IsDeferredContent { get; set; } } internal enum Baml2006ReaderFrameFlags:byte { None, IsImplict, HasImplicitProperty } } // 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
- CustomAssemblyResolver.cs
- MenuCommand.cs
- EnumerableValidator.cs
- XslUrlEditor.cs
- MetadataPropertyvalue.cs
- AccessControlList.cs
- BevelBitmapEffect.cs
- COM2PictureConverter.cs
- ValuePatternIdentifiers.cs
- DataSetMappper.cs
- TemplateNameScope.cs
- AudioFormatConverter.cs
- CrossContextChannel.cs
- RoutingService.cs
- ResXResourceSet.cs
- WebPartVerbCollection.cs
- PersonalizationStateQuery.cs
- SafeFileMappingHandle.cs
- CssClassPropertyAttribute.cs
- ListenerServiceInstallComponent.cs
- ColorAnimation.cs
- RolePrincipal.cs
- DateTimeConverter2.cs
- List.cs
- ResizeGrip.cs
- Geometry3D.cs
- Win32Native.cs
- VectorAnimationUsingKeyFrames.cs
- Logging.cs
- TextEffectCollection.cs
- RenameRuleObjectDialog.cs
- GetReadStreamResult.cs
- PointCollection.cs
- ASCIIEncoding.cs
- MsmqMessage.cs
- StylusEventArgs.cs
- KeyValuePair.cs
- ClientCultureInfo.cs
- httpstaticobjectscollection.cs
- XhtmlStyleClass.cs
- SecureUICommand.cs
- MatrixTransform.cs
- GridViewRowEventArgs.cs
- mediapermission.cs
- MarkupCompilePass1.cs
- Gdiplus.cs
- JournalEntry.cs
- RuleAttributes.cs
- NullReferenceException.cs
- Rights.cs
- MailAddressCollection.cs
- FilterElement.cs
- DbMetaDataCollectionNames.cs
- NativeMethods.cs
- DisplayInformation.cs
- PocoEntityKeyStrategy.cs
- XdrBuilder.cs
- TaskFormBase.cs
- AccessDataSourceDesigner.cs
- PropertyOrder.cs
- DynamicObjectAccessor.cs
- CategoriesDocument.cs
- BaseDataListActionList.cs
- COAUTHINFO.cs
- SchemaObjectWriter.cs
- DiscoveryInnerClientAdhoc11.cs
- FunctionMappingTranslator.cs
- PropertyGroupDescription.cs
- PasswordBox.cs
- Bitmap.cs
- XmlAttributeAttribute.cs
- XmlSerializerSection.cs
- DbConnectionPoolIdentity.cs
- ObjectParameterCollection.cs
- MimeMapping.cs
- ThreadStaticAttribute.cs
- HyperLink.cs
- InputLanguage.cs
- PageBuildProvider.cs
- BindToObject.cs
- ExpressionBuilder.cs
- ReflectPropertyDescriptor.cs
- PeekCompletedEventArgs.cs
- MetadataSerializer.cs
- SafeCryptoHandles.cs
- BufferBuilder.cs
- WebPartHeaderCloseVerb.cs
- ServicePointManagerElement.cs
- ProfilePropertySettingsCollection.cs
- GridViewDeletedEventArgs.cs
- TextTrailingCharacterEllipsis.cs
- ButtonBase.cs
- DataGridTablesFactory.cs
- PerfCounterSection.cs
- ConstructorNeedsTagAttribute.cs
- DataFormats.cs
- ContextProperty.cs
- LocalizableResourceBuilder.cs
- Models.cs
- ButtonChrome.cs