Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Markup / ParserHooks.cs / 1305600 / ParserHooks.cs
/****************************************************************************\ * * File: ParserHooks.cs * * Purpose: Callback at parse time for node processing * * Copyright (C) by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Reflection; using System; using System.Xml; #if PBTCOMPILER namespace MS.Internal.Markup #else namespace System.Windows.Markup #endif { ////// Describes the action the parser is to take after it /// has called back to the ParserHooks /// internal enum ParserAction { ////// parser should do normal processing /// Normal, ////// Parser should not process this node. /// If the current node is an Element, skip the current node and all of its children /// If the current node is an attribute,skip to the next attribute /// Skip } ////// The base class for the parse time callbacks. /// ////// The localization team will use this under two scenarios /// 1. The Uid generation tool wants to know the different xaml nodes and their positions in a xaml file /// 2. Used to strip out the localization attributes during compilation to Baml /// internal abstract class ParserHooks { ////// Called by parser after it determines what node type for /// the XML Node and has tokenized the xml node content. /// ////// Node types are Resources, Code: Element Object, properties, events etc. /// The return value is a ParserAction value which indicates if the parser /// should: continue normal processing; skip this node and any children /// internal virtual ParserAction LoadNode(XamlNode tokenNode) { return ParserAction.Normal; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /****************************************************************************\ * * File: ParserHooks.cs * * Purpose: Callback at parse time for node processing * * Copyright (C) by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Reflection; using System; using System.Xml; #if PBTCOMPILER namespace MS.Internal.Markup #else namespace System.Windows.Markup #endif { ////// Describes the action the parser is to take after it /// has called back to the ParserHooks /// internal enum ParserAction { ////// parser should do normal processing /// Normal, ////// Parser should not process this node. /// If the current node is an Element, skip the current node and all of its children /// If the current node is an attribute,skip to the next attribute /// Skip } ////// The base class for the parse time callbacks. /// ////// The localization team will use this under two scenarios /// 1. The Uid generation tool wants to know the different xaml nodes and their positions in a xaml file /// 2. Used to strip out the localization attributes during compilation to Baml /// internal abstract class ParserHooks { ////// Called by parser after it determines what node type for /// the XML Node and has tokenized the xml node content. /// ////// Node types are Resources, Code: Element Object, properties, events etc. /// The return value is a ParserAction value which indicates if the parser /// should: continue normal processing; skip this node and any children /// internal virtual ParserAction LoadNode(XamlNode tokenNode) { return ParserAction.Normal; } } } // 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
- DbProviderFactory.cs
- PlainXmlSerializer.cs
- WebDisplayNameAttribute.cs
- SelectionProcessor.cs
- BamlWriter.cs
- MergeLocalizationDirectives.cs
- ChannelServices.cs
- MeshGeometry3D.cs
- AssociationType.cs
- HttpConfigurationContext.cs
- SchemaTableOptionalColumn.cs
- ElasticEase.cs
- XsltSettings.cs
- OdbcConnectionFactory.cs
- ItemChangedEventArgs.cs
- FixedDocumentPaginator.cs
- CrossSiteScriptingValidation.cs
- SmtpDigestAuthenticationModule.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- SimpleRecyclingCache.cs
- ConfigurationErrorsException.cs
- PlaceHolder.cs
- ConfigXmlComment.cs
- BooleanKeyFrameCollection.cs
- OutputCacheSettings.cs
- BlockCollection.cs
- EntityConnectionStringBuilder.cs
- DesigntimeLicenseContext.cs
- TypeToken.cs
- Hex.cs
- PersonalizableTypeEntry.cs
- SeverityFilter.cs
- RegexCompiler.cs
- HotSpot.cs
- ModelItemCollectionImpl.cs
- WorkflowOperationFault.cs
- DoubleLinkList.cs
- _NegoStream.cs
- SectionVisual.cs
- RuntimeWrappedException.cs
- XmlComplianceUtil.cs
- SqlBuilder.cs
- SqlDataSourceFilteringEventArgs.cs
- RegionInfo.cs
- MemberInfoSerializationHolder.cs
- SharedPersonalizationStateInfo.cs
- DataRowCollection.cs
- Imaging.cs
- BuildTopDownAttribute.cs
- MatchingStyle.cs
- Transform3D.cs
- ScriptResourceAttribute.cs
- MiniModule.cs
- Rect.cs
- StylusDownEventArgs.cs
- CancellationToken.cs
- CommonDialog.cs
- XmlNamespaceMappingCollection.cs
- PublishLicense.cs
- CqlBlock.cs
- EventDescriptor.cs
- OutputCacheSection.cs
- SecureStringHasher.cs
- DataSourceHelper.cs
- ActiveXMessageFormatter.cs
- figurelength.cs
- TextWriter.cs
- ReaderWriterLock.cs
- TextServicesProperty.cs
- DateRangeEvent.cs
- ExpressionDumper.cs
- CodeSnippetTypeMember.cs
- SemanticResolver.cs
- ActiveXContainer.cs
- KnownBoxes.cs
- TabOrder.cs
- MorphHelpers.cs
- DispatcherExceptionFilterEventArgs.cs
- XmlHierarchyData.cs
- UnsafeNativeMethods.cs
- ChangeTracker.cs
- DetailsViewDeleteEventArgs.cs
- PixelFormats.cs
- MetafileEditor.cs
- StructuredTypeEmitter.cs
- SqlNamer.cs
- DispatcherHookEventArgs.cs
- XmlProcessingInstruction.cs
- PerformanceCounterPermissionEntry.cs
- Form.cs
- FaultContractInfo.cs
- SingleAnimation.cs
- HttpCacheParams.cs
- SettingsSavedEventArgs.cs
- RelationshipEndCollection.cs
- UrlAuthFailedErrorFormatter.cs
- EventManager.cs
- ViewKeyConstraint.cs
- RNGCryptoServiceProvider.cs
- CodeTypeMember.cs