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
- UserPersonalizationStateInfo.cs
- AncillaryOps.cs
- RNGCryptoServiceProvider.cs
- XmlSubtreeReader.cs
- OracleLob.cs
- HebrewCalendar.cs
- SystemIPv6InterfaceProperties.cs
- AmbiguousMatchException.cs
- Pair.cs
- FixedElement.cs
- DelegateArgumentValue.cs
- MultiBindingExpression.cs
- SqlBinder.cs
- Math.cs
- CustomCredentialPolicy.cs
- CommentEmitter.cs
- OracleTransaction.cs
- Atom10FormatterFactory.cs
- WorkflowMessageEventHandler.cs
- ModelTreeEnumerator.cs
- FrameworkReadOnlyPropertyMetadata.cs
- UnionCodeGroup.cs
- EventRecordWrittenEventArgs.cs
- X509CertificateTokenFactoryCredential.cs
- AutomationPeer.cs
- NamedObject.cs
- EditingCoordinator.cs
- InputLanguageSource.cs
- CodeDomSerializerException.cs
- Decoder.cs
- WindowsBrush.cs
- WebBrowserNavigatedEventHandler.cs
- QilXmlWriter.cs
- CompensatableTransactionScopeActivity.cs
- ByteKeyFrameCollection.cs
- RectValueSerializer.cs
- FragmentQuery.cs
- SiteOfOriginContainer.cs
- HostedTransportConfigurationManager.cs
- IntSumAggregationOperator.cs
- CriticalExceptions.cs
- SelectionRangeConverter.cs
- PersistChildrenAttribute.cs
- SqlCaseSimplifier.cs
- ConcurrentStack.cs
- Transactions.cs
- SizeValueSerializer.cs
- StringAnimationUsingKeyFrames.cs
- WebPartConnectionCollection.cs
- CompositeScriptReference.cs
- BitmapPalette.cs
- MainMenu.cs
- ItemMap.cs
- MessageQueueEnumerator.cs
- DataSourceCacheDurationConverter.cs
- ITreeGenerator.cs
- TextContainerChangeEventArgs.cs
- SafeRegistryHandle.cs
- ThreadExceptionDialog.cs
- Help.cs
- RectangleGeometry.cs
- TreeSet.cs
- AutomationIdentifierGuids.cs
- ObjectDataSourceView.cs
- BaseComponentEditor.cs
- ConfigurationStrings.cs
- DesignSurfaceEvent.cs
- SimpleExpression.cs
- RtType.cs
- Quaternion.cs
- IntermediatePolicyValidator.cs
- UnsafeNativeMethods.cs
- SymbolType.cs
- ProcessManager.cs
- PointUtil.cs
- ColorInterpolationModeValidation.cs
- XmlWriterTraceListener.cs
- ToolTip.cs
- SourceSwitch.cs
- SmtpMail.cs
- CommonObjectSecurity.cs
- SqlConnection.cs
- TableAdapterManagerNameHandler.cs
- XsltException.cs
- IOThreadTimer.cs
- DetailsViewModeEventArgs.cs
- PasswordTextNavigator.cs
- PersonalizationProviderHelper.cs
- DataSourceXmlClassAttribute.cs
- DataMemberConverter.cs
- DataGridViewCellValueEventArgs.cs
- SiteMapDataSource.cs
- RoutingUtilities.cs
- ListBoxItem.cs
- ScrollableControlDesigner.cs
- SizeF.cs
- OleDbDataReader.cs
- RawStylusInputCustomData.cs
- EventLogger.cs
- EntityCommandExecutionException.cs