Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / Markup / ParserHooks.cs / 1 / 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
- SplineQuaternionKeyFrame.cs
- RemotingClientProxy.cs
- Vector3DIndependentAnimationStorage.cs
- CssStyleCollection.cs
- SiteMapProvider.cs
- ConstraintStruct.cs
- FontUnitConverter.cs
- CheckBoxStandardAdapter.cs
- GridViewUpdatedEventArgs.cs
- _WinHttpWebProxyDataBuilder.cs
- Tablet.cs
- ToolboxDataAttribute.cs
- ProviderSettings.cs
- _OSSOCK.cs
- FilterEventArgs.cs
- GridToolTip.cs
- SrgsToken.cs
- SqlCommandBuilder.cs
- StickyNote.cs
- FaultReason.cs
- SafeEventLogWriteHandle.cs
- CodeVariableReferenceExpression.cs
- x509utils.cs
- TextComposition.cs
- ParallelEnumerable.cs
- SmtpFailedRecipientsException.cs
- UnknownBitmapEncoder.cs
- PageAsyncTask.cs
- FontStretchConverter.cs
- EditBehavior.cs
- AssociatedControlConverter.cs
- HtmlInputPassword.cs
- VarInfo.cs
- IResourceProvider.cs
- ResourceReferenceExpressionConverter.cs
- CfgParser.cs
- SmiTypedGetterSetter.cs
- BindingFormattingDialog.cs
- Point.cs
- ElementsClipboardData.cs
- TextFormatterHost.cs
- Crypto.cs
- XmlCharType.cs
- XmlSchemas.cs
- TextSchema.cs
- DesignerHierarchicalDataSourceView.cs
- CodeConstructor.cs
- HelloMessageCD1.cs
- StrokeRenderer.cs
- XPathSelectionIterator.cs
- DateTimeFormatInfoScanner.cs
- _NativeSSPI.cs
- Hashtable.cs
- X509PeerCertificateElement.cs
- CacheChildrenQuery.cs
- Translator.cs
- ArrangedElementCollection.cs
- DigestTraceRecordHelper.cs
- BitmapFrameDecode.cs
- BufferedWebEventProvider.cs
- DoubleStorage.cs
- HashStream.cs
- FontDriver.cs
- BlockCollection.cs
- ThreadLocal.cs
- SQLDouble.cs
- ConfigurationElementProperty.cs
- CodeMethodInvokeExpression.cs
- _NativeSSPI.cs
- UserControlCodeDomTreeGenerator.cs
- Rotation3DKeyFrameCollection.cs
- SmtpSection.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- ReadOnlyAttribute.cs
- ImportCatalogPart.cs
- BaseComponentEditor.cs
- Parameter.cs
- DbTransaction.cs
- HelpEvent.cs
- TextParagraphView.cs
- CodeCommentStatementCollection.cs
- NetworkCredential.cs
- TextTreeUndoUnit.cs
- EventListener.cs
- TemplateControlCodeDomTreeGenerator.cs
- PassportAuthenticationModule.cs
- ToolStripPanel.cs
- WebConfigurationFileMap.cs
- GridViewColumnCollection.cs
- MimeWriter.cs
- IQueryable.cs
- ParenthesizePropertyNameAttribute.cs
- LayoutSettings.cs
- ManagedWndProcTracker.cs
- CoreSwitches.cs
- ParameterCollection.cs
- ConfigurationSectionCollection.cs
- CryptoConfig.cs
- BaseCodeDomTreeGenerator.cs
- CatalogPart.cs