Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- GetCryptoTransformRequest.cs
- ToolStripItemRenderEventArgs.cs
- OpenTypeLayoutCache.cs
- ResetableIterator.cs
- SystemIPv4InterfaceProperties.cs
- SafeNativeMethods.cs
- CodeTypeOfExpression.cs
- ControlPersister.cs
- HttpServerVarsCollection.cs
- FamilyMapCollection.cs
- GetPageNumberCompletedEventArgs.cs
- TreeView.cs
- AddInIpcChannel.cs
- BufferedWebEventProvider.cs
- SoapDocumentMethodAttribute.cs
- SQLDoubleStorage.cs
- VBIdentifierNameEditor.cs
- HttpRuntimeSection.cs
- BitmapEffectDrawing.cs
- EdmToObjectNamespaceMap.cs
- User.cs
- ViewStateModeByIdAttribute.cs
- TextStore.cs
- OdbcCommandBuilder.cs
- MembershipPasswordException.cs
- CLSCompliantAttribute.cs
- EventManager.cs
- InvokeMethodActivityDesigner.cs
- DefaultValueAttribute.cs
- NativeCppClassAttribute.cs
- X509CertificateStore.cs
- BinaryMessageEncodingElement.cs
- PersonalizableTypeEntry.cs
- MasterPageParser.cs
- ControlAdapter.cs
- StringUtil.cs
- SecureUICommand.cs
- TextServicesCompartment.cs
- X509Utils.cs
- LinqDataSourceDeleteEventArgs.cs
- SignatureDescription.cs
- ColumnReorderedEventArgs.cs
- OutputCacheProfile.cs
- MenuTracker.cs
- GlyphElement.cs
- Point4D.cs
- HiddenFieldDesigner.cs
- ObjectConverter.cs
- Rfc4050KeyFormatter.cs
- DataServiceRequestException.cs
- EnumMember.cs
- EventBookmark.cs
- ModelTreeEnumerator.cs
- NavigatorOutput.cs
- ResXResourceWriter.cs
- activationcontext.cs
- ColumnResult.cs
- DiscardableAttribute.cs
- CapabilitiesRule.cs
- bidPrivateBase.cs
- NativeMethods.cs
- ChannelManager.cs
- PlaceHolder.cs
- WebReference.cs
- InternalControlCollection.cs
- VerificationAttribute.cs
- ValidationSummary.cs
- HtmlInputSubmit.cs
- Point3DAnimationUsingKeyFrames.cs
- SubpageParagraph.cs
- PnrpPermission.cs
- CacheHelper.cs
- ButtonBase.cs
- PeerChannelListener.cs
- SoundPlayerAction.cs
- WebControl.cs
- diagnosticsswitches.cs
- File.cs
- DockingAttribute.cs
- DbParameterHelper.cs
- TextRenderer.cs
- SelectionGlyphBase.cs
- TCPListener.cs
- IdentityHolder.cs
- AdRotatorDesigner.cs
- TracedNativeMethods.cs
- ExecutedRoutedEventArgs.cs
- FtpRequestCacheValidator.cs
- XmlImplementation.cs
- UITypeEditor.cs
- SQLBoolean.cs
- QuerySettings.cs
- Span.cs
- GifBitmapEncoder.cs
- SetIterators.cs
- EncryptedKeyIdentifierClause.cs
- SortKey.cs
- XmlDocumentSerializer.cs
- SuppressIldasmAttribute.cs
- PropertyDescriptor.cs