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
- ExtractedStateEntry.cs
- CapabilitiesRule.cs
- AdapterDictionary.cs
- CustomTrackingRecord.cs
- InternalDuplexBindingElement.cs
- TransformPattern.cs
- PeerApplication.cs
- UInt32Converter.cs
- MetadataSource.cs
- Classification.cs
- PictureBox.cs
- IdentitySection.cs
- InitializationEventAttribute.cs
- DependentList.cs
- BufferedGraphics.cs
- XmlNamespaceManager.cs
- TreeSet.cs
- RepeatInfo.cs
- DbDataReader.cs
- ParseChildrenAsPropertiesAttribute.cs
- Propagator.Evaluator.cs
- SyndicationItemFormatter.cs
- ByteKeyFrameCollection.cs
- MenuCommands.cs
- _OverlappedAsyncResult.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- SqlProcedureAttribute.cs
- DependencyObject.cs
- PolicyUnit.cs
- Evidence.cs
- WebPartDisplayModeCollection.cs
- TableLayoutSettings.cs
- TreeBuilderBamlTranslator.cs
- AsynchronousChannelMergeEnumerator.cs
- BindingSource.cs
- WpfSharedBamlSchemaContext.cs
- HealthMonitoringSectionHelper.cs
- Operators.cs
- EmissiveMaterial.cs
- WebBrowserUriTypeConverter.cs
- DiscoveryInnerClientAdhocCD1.cs
- RecordBuilder.cs
- QueryCacheManager.cs
- Comparer.cs
- XmlILConstructAnalyzer.cs
- ImageMetadata.cs
- ChildDocumentBlock.cs
- FrameworkContextData.cs
- SmtpClient.cs
- ConnectionPointGlyph.cs
- ThemeDictionaryExtension.cs
- ValueProviderWrapper.cs
- QuotedPairReader.cs
- WpfKnownTypeInvoker.cs
- TransformProviderWrapper.cs
- BoolExpr.cs
- XmlElementAttribute.cs
- QilInvokeLateBound.cs
- LiteralDesigner.cs
- ExpressionVisitor.cs
- ObjectSet.cs
- OledbConnectionStringbuilder.cs
- Publisher.cs
- SimpleFieldTemplateFactory.cs
- WebPartTransformer.cs
- XmlNamespaceMappingCollection.cs
- PopupEventArgs.cs
- XpsThumbnail.cs
- BamlReader.cs
- WebPartZoneCollection.cs
- RawAppCommandInputReport.cs
- ObjectStateFormatter.cs
- InstanceDataCollectionCollection.cs
- DataGridBoolColumn.cs
- BooleanAnimationBase.cs
- ImpersonateTokenRef.cs
- LayoutSettings.cs
- DesignTimeSiteMapProvider.cs
- EntityDataSourceChangedEventArgs.cs
- ClientData.cs
- LongValidatorAttribute.cs
- TransactionManager.cs
- AppDomainAttributes.cs
- SqlInternalConnection.cs
- ModuleBuilder.cs
- CharacterHit.cs
- SinglePageViewer.cs
- BitmapDecoder.cs
- TextContainerHelper.cs
- TypeRefElement.cs
- ArgumentNullException.cs
- NamespaceCollection.cs
- Int32AnimationUsingKeyFrames.cs
- EncryptedHeaderXml.cs
- Int32EqualityComparer.cs
- ConnectionStringSettings.cs
- Speller.cs
- NavigatorInput.cs
- WizardPanel.cs
- ColorPalette.cs