Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Markup / XamlReaderConstants.cs / 1305600 / XamlReaderConstants.cs
/****************************************************************************\ * * File: XamlReaderConstants.cs * * Purpose: Constants for XAML system. Kept in XamlReaderHelper class. * * History: * 11/21/08: [....] Ported from XamlReaderHelper.cs as part of Parser migration * * Copyright (C) 2008 by Microsoft Corporation. All rights reserved. * \***************************************************************************/ // set this flag to turn on whitespace collapse rules. // todo: need a whitespace DRT // todo: need to know if parent Accepts textNodes // todo: need to know if parent wants a TextFlow // #define UseValidatingReader using System; using System.Xml; using System.Xml.Serialization; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Reflection; using System.Globalization; using MS.Utility; using System.Collections.Specialized; using Microsoft.Win32; using System.Runtime.InteropServices; using MS.Internal; using System.Windows.Markup; // Disabling 1634 and 1691: // In order to avoid generating warnings about unknown message numbers and // unknown pragmas when compiling C# source code with the C# compiler, // you need to disable warnings 1634 and 1691. (Presharp Documentation) #pragma warning disable 1634, 1691 #if !PBTCOMPILER using System.Windows; using System.Windows.Documents; using System.Windows.Media; using System.Windows.Shapes; #endif #if PBTCOMPILER namespace MS.Internal.Markup #else namespace System.Windows.Markup #endif { internal partial class XamlReaderHelper { // Define for the Definition NamespaceURI so not hardcoded everywhere. internal const string DefinitionNamespaceURI = "http://schemas.microsoft.com/winfx/2006/xaml"; internal const string DefinitionUid = "Uid"; internal const string DefinitionType = "Type"; internal const string DefinitionTypeArgs = "TypeArguments"; internal const string DefinitionName = "Key"; internal const string DefinitionRuntimeName = "Name"; internal const string DefinitionShared = "Shared"; internal const string DefinitionSynchronousMode = "SynchronousMode"; internal const string DefinitionAsyncRecords = "AsyncRecords"; internal const string DefinitionContent = "Content"; internal const string DefinitionClass = "Class"; internal const string DefinitionSubclass = "Subclass"; internal const string DefinitionClassModifier = "ClassModifier"; internal const string DefinitionFieldModifier = "FieldModifier"; internal const string DefinitionCodeTag = "Code"; internal const string DefinitionXDataTag = "XData"; internal const string MappingProtocol = "clr-namespace:"; internal const string MappingAssembly = ";assembly="; internal const string PresentationOptionsFreeze = "Freeze"; // Default URI for Avalon base and framework. internal const string DefaultNamespaceURI = "http://schemas.microsoft.com/winfx/2006/xaml/presentation"; // Default URI for Metro. Note that this is used to map Key attribute for resource // dictionaries only. Refer to Windows bug # 1100953 for more info. internal const string DefinitionMetroNamespaceURI = "http://schemas.microsoft.com/xps/2005/06/resourcedictionary-key"; // URI for WPF parsing options (currently only used for option to Freeze Freezables) internal const string PresentationOptionsNamespaceURI = "http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"; #if !PBTCOMPILER internal static System.Xaml.XamlDirective Freeze { get { if (_freezeDirective == null) { _freezeDirective = new System.Xaml.XamlDirective(XamlReaderHelper.PresentationOptionsNamespaceURI, XamlReaderHelper.PresentationOptionsFreeze); } return _freezeDirective; } } private static System.Xaml.XamlDirective _freezeDirective; #endif } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /****************************************************************************\ * * File: XamlReaderConstants.cs * * Purpose: Constants for XAML system. Kept in XamlReaderHelper class. * * History: * 11/21/08: [....] Ported from XamlReaderHelper.cs as part of Parser migration * * Copyright (C) 2008 by Microsoft Corporation. All rights reserved. * \***************************************************************************/ // set this flag to turn on whitespace collapse rules. // todo: need a whitespace DRT // todo: need to know if parent Accepts textNodes // todo: need to know if parent wants a TextFlow // #define UseValidatingReader using System; using System.Xml; using System.Xml.Serialization; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Reflection; using System.Globalization; using MS.Utility; using System.Collections.Specialized; using Microsoft.Win32; using System.Runtime.InteropServices; using MS.Internal; using System.Windows.Markup; // Disabling 1634 and 1691: // In order to avoid generating warnings about unknown message numbers and // unknown pragmas when compiling C# source code with the C# compiler, // you need to disable warnings 1634 and 1691. (Presharp Documentation) #pragma warning disable 1634, 1691 #if !PBTCOMPILER using System.Windows; using System.Windows.Documents; using System.Windows.Media; using System.Windows.Shapes; #endif #if PBTCOMPILER namespace MS.Internal.Markup #else namespace System.Windows.Markup #endif { internal partial class XamlReaderHelper { // Define for the Definition NamespaceURI so not hardcoded everywhere. internal const string DefinitionNamespaceURI = "http://schemas.microsoft.com/winfx/2006/xaml"; internal const string DefinitionUid = "Uid"; internal const string DefinitionType = "Type"; internal const string DefinitionTypeArgs = "TypeArguments"; internal const string DefinitionName = "Key"; internal const string DefinitionRuntimeName = "Name"; internal const string DefinitionShared = "Shared"; internal const string DefinitionSynchronousMode = "SynchronousMode"; internal const string DefinitionAsyncRecords = "AsyncRecords"; internal const string DefinitionContent = "Content"; internal const string DefinitionClass = "Class"; internal const string DefinitionSubclass = "Subclass"; internal const string DefinitionClassModifier = "ClassModifier"; internal const string DefinitionFieldModifier = "FieldModifier"; internal const string DefinitionCodeTag = "Code"; internal const string DefinitionXDataTag = "XData"; internal const string MappingProtocol = "clr-namespace:"; internal const string MappingAssembly = ";assembly="; internal const string PresentationOptionsFreeze = "Freeze"; // Default URI for Avalon base and framework. internal const string DefaultNamespaceURI = "http://schemas.microsoft.com/winfx/2006/xaml/presentation"; // Default URI for Metro. Note that this is used to map Key attribute for resource // dictionaries only. Refer to Windows bug # 1100953 for more info. internal const string DefinitionMetroNamespaceURI = "http://schemas.microsoft.com/xps/2005/06/resourcedictionary-key"; // URI for WPF parsing options (currently only used for option to Freeze Freezables) internal const string PresentationOptionsNamespaceURI = "http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"; #if !PBTCOMPILER internal static System.Xaml.XamlDirective Freeze { get { if (_freezeDirective == null) { _freezeDirective = new System.Xaml.XamlDirective(XamlReaderHelper.PresentationOptionsNamespaceURI, XamlReaderHelper.PresentationOptionsFreeze); } return _freezeDirective; } } private static System.Xaml.XamlDirective _freezeDirective; #endif } } // 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
- SqlDataSourceWizardForm.cs
- UndoEngine.cs
- HandlerBase.cs
- GridViewRowPresenterBase.cs
- WindowsListViewScroll.cs
- Rfc2898DeriveBytes.cs
- WindowsFormsHostPropertyMap.cs
- AesManaged.cs
- InstanceKeyCompleteException.cs
- XmlSchemaAnyAttribute.cs
- Trigger.cs
- SafeRightsManagementPubHandle.cs
- SafeNativeMethods.cs
- SparseMemoryStream.cs
- VectorValueSerializer.cs
- MultiBinding.cs
- TextProperties.cs
- UnionCodeGroup.cs
- StrongTypingException.cs
- XmlReaderSettings.cs
- DBPropSet.cs
- ListBindingHelper.cs
- BinaryFormatterWriter.cs
- DescendantQuery.cs
- TrackingProfile.cs
- RowSpanVector.cs
- AbstractSvcMapFileLoader.cs
- Trace.cs
- UInt32Converter.cs
- BaseResourcesBuildProvider.cs
- CultureData.cs
- WhileDesigner.cs
- WebPartZoneDesigner.cs
- XamlRtfConverter.cs
- DoubleCollection.cs
- ComponentManagerBroker.cs
- DataServiceQueryProvider.cs
- GeneralTransform.cs
- ActiveXSite.cs
- Predicate.cs
- ACE.cs
- FormatVersion.cs
- DateTimeStorage.cs
- SiteMapNodeCollection.cs
- AmbientProperties.cs
- SmiGettersStream.cs
- UInt16Storage.cs
- AssemblyNameProxy.cs
- ColorContextHelper.cs
- InsufficientExecutionStackException.cs
- AncestorChangedEventArgs.cs
- _NegoStream.cs
- _AuthenticationState.cs
- PiiTraceSource.cs
- MenuStrip.cs
- RequestCacheManager.cs
- WindowsToolbarItemAsMenuItem.cs
- TreeNodeMouseHoverEvent.cs
- Command.cs
- FixedPosition.cs
- SqlDataSourceView.cs
- CryptoConfig.cs
- CommandHelper.cs
- StorageInfo.cs
- ApplicationServiceHelper.cs
- DataSourceSelectArguments.cs
- EntityDataSourceDesignerHelper.cs
- GridViewColumnHeaderAutomationPeer.cs
- InstallerTypeAttribute.cs
- SoapClientMessage.cs
- GeneralTransform3DCollection.cs
- NamedPipeHostedTransportConfiguration.cs
- ColumnMapCopier.cs
- SAPIEngineTypes.cs
- XmlSchemaInferenceException.cs
- ConsumerConnectionPoint.cs
- StatusBar.cs
- ChtmlSelectionListAdapter.cs
- InputQueue.cs
- TreeNodeCollection.cs
- XmlWrappingReader.cs
- LicenseContext.cs
- ProxySimple.cs
- WebPartTracker.cs
- smtpconnection.cs
- GridProviderWrapper.cs
- versioninfo.cs
- FixedHighlight.cs
- DeferredSelectedIndexReference.cs
- SerialPinChanges.cs
- TextEmbeddedObject.cs
- BreadCrumbTextConverter.cs
- updateconfighost.cs
- NetWebProxyFinder.cs
- NamedPipeTransportManager.cs
- IdentifierCollection.cs
- SqlProcedureAttribute.cs
- ProcessHostConfigUtils.cs
- RenderData.cs
- RolePrincipal.cs