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
- ConfigurationSectionGroup.cs
- CryptoProvider.cs
- ManualWorkflowSchedulerService.cs
- XPathExpr.cs
- ConstraintManager.cs
- TextEditorThreadLocalStore.cs
- SqlNodeAnnotations.cs
- BamlTreeNode.cs
- DocumentXPathNavigator.cs
- RenderData.cs
- LifetimeServices.cs
- WebSysDefaultValueAttribute.cs
- InkCanvasAutomationPeer.cs
- SingleResultAttribute.cs
- MetadataPropertyCollection.cs
- DataBoundControl.cs
- Regex.cs
- ActionFrame.cs
- EntityClassGenerator.cs
- PublisherMembershipCondition.cs
- ListViewItemSelectionChangedEvent.cs
- HttpServerUtilityWrapper.cs
- TableAutomationPeer.cs
- Exceptions.cs
- FileAuthorizationModule.cs
- ToolStripPanelSelectionBehavior.cs
- MasterPage.cs
- GenericsInstances.cs
- WorkflowService.cs
- Selection.cs
- ImageCollectionCodeDomSerializer.cs
- SecurityPolicySection.cs
- SecurityDescriptor.cs
- PhoneCallDesigner.cs
- SafeFileHandle.cs
- X509Utils.cs
- xsdvalidator.cs
- ProfilePropertySettings.cs
- RegexTypeEditor.cs
- X509CertificateCollection.cs
- TdsParameterSetter.cs
- GridViewUpdatedEventArgs.cs
- PtsHelper.cs
- TwoPhaseCommitProxy.cs
- EntityDataSourceStatementEditorForm.cs
- UnmanagedMarshal.cs
- DockPattern.cs
- RectConverter.cs
- TextLineBreak.cs
- LabelEditEvent.cs
- OleDbConnection.cs
- RemotingAttributes.cs
- XmlTextReader.cs
- OleDbRowUpdatedEvent.cs
- CustomCredentialPolicy.cs
- DeclarativeCatalogPart.cs
- EditingScope.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- SqlCacheDependency.cs
- AssemblyCacheEntry.cs
- SafeCertificateStore.cs
- HyperLinkStyle.cs
- StateItem.cs
- TdsParserStateObject.cs
- ConsoleCancelEventArgs.cs
- GroupBox.cs
- Encoding.cs
- BasicExpressionVisitor.cs
- OrderedHashRepartitionStream.cs
- AutomationEvent.cs
- FlowchartStart.xaml.cs
- NullRuntimeConfig.cs
- ColumnClickEvent.cs
- CommonGetThemePartSize.cs
- RTTrackingProfile.cs
- MobileTemplatedControlDesigner.cs
- DrawingAttributes.cs
- HotSpot.cs
- HtmlElementErrorEventArgs.cs
- DataObjectFieldAttribute.cs
- While.cs
- HandlerFactoryCache.cs
- XmlAttributeCache.cs
- DesignerActionHeaderItem.cs
- XmlAttributeOverrides.cs
- ObjectQueryProvider.cs
- X509Logo.cs
- DiscreteKeyFrames.cs
- WebPartConnectionsDisconnectVerb.cs
- JapaneseCalendar.cs
- WinEventWrap.cs
- TextBoxBase.cs
- HelpPage.cs
- AuthenticatingEventArgs.cs
- DocumentReferenceCollection.cs
- _AcceptOverlappedAsyncResult.cs
- CommonRemoteMemoryBlock.cs
- TraceLevelStore.cs
- RightsManagementEncryptionTransform.cs
- XmlSchemaSet.cs