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
- ToolStripMenuItemCodeDomSerializer.cs
- ParagraphResult.cs
- AmbientLight.cs
- LockRecursionException.cs
- ConfigurationElementCollection.cs
- prefixendpointaddressmessagefilter.cs
- CachedRequestParams.cs
- RtfToXamlReader.cs
- ButtonBase.cs
- LambdaCompiler.Binary.cs
- SizeAnimationBase.cs
- ContentOperations.cs
- NavigationProperty.cs
- TargetParameterCountException.cs
- AdRotator.cs
- QuadTree.cs
- TableRow.cs
- TextShapeableCharacters.cs
- WebPartRestoreVerb.cs
- OrderedHashRepartitionStream.cs
- ProviderConnectionPoint.cs
- UnsafeNativeMethodsPenimc.cs
- QueryOutputWriter.cs
- GetRecipientListRequest.cs
- XXXOnTypeBuilderInstantiation.cs
- SingleStorage.cs
- storagemappingitemcollection.viewdictionary.cs
- Variable.cs
- MenuItemStyleCollection.cs
- SerialPinChanges.cs
- CounterCreationData.cs
- CollectionDataContractAttribute.cs
- OrderedDictionary.cs
- ServiceNameCollection.cs
- DataServiceClientException.cs
- SimpleHandlerBuildProvider.cs
- SQLMembershipProvider.cs
- FontFamily.cs
- ModelItemCollection.cs
- TextCharacters.cs
- HttpListenerException.cs
- XmlReturnReader.cs
- ListBindingHelper.cs
- ValidatorCollection.cs
- CommandField.cs
- UpdateTranslator.cs
- ZipIOBlockManager.cs
- EntityContainerEntitySet.cs
- METAHEADER.cs
- WebPartDeleteVerb.cs
- SqlFunctions.cs
- Padding.cs
- WebExceptionStatus.cs
- StringCollectionEditor.cs
- DesignerLoader.cs
- QueryResults.cs
- TreeNodeBindingCollection.cs
- Color.cs
- RequestFactory.cs
- CurrencyManager.cs
- AssemblyBuilder.cs
- ColorEditor.cs
- ControlValuePropertyAttribute.cs
- TreePrinter.cs
- TransformGroup.cs
- Rectangle.cs
- SortedDictionary.cs
- XpsFilter.cs
- TextView.cs
- Utility.cs
- StringArrayEditor.cs
- exports.cs
- SettingsBindableAttribute.cs
- DefaultHttpHandler.cs
- TextComposition.cs
- CustomExpression.cs
- StorageComplexPropertyMapping.cs
- HMACSHA512.cs
- DocumentViewerAutomationPeer.cs
- Point3D.cs
- ParameterBuilder.cs
- GenericsNotImplementedException.cs
- ExpandCollapseIsCheckedConverter.cs
- GlyphsSerializer.cs
- NativeMethods.cs
- CalculatedColumn.cs
- DataGridViewCheckBoxCell.cs
- DataGridViewButtonCell.cs
- XmlSchemas.cs
- ObjectDataSourceView.cs
- HMAC.cs
- MemoryMappedFile.cs
- CodeAccessSecurityEngine.cs
- basemetadatamappingvisitor.cs
- PropertyMapper.cs
- ServiceInstanceProvider.cs
- MenuTracker.cs
- AutomationPatternInfo.cs
- DeleteMemberBinder.cs
- RawKeyboardInputReport.cs