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
- SplitContainerDesigner.cs
- MeasureItemEvent.cs
- SigningCredentials.cs
- TransactionsSectionGroup.cs
- _NegoState.cs
- ProxyElement.cs
- PeerName.cs
- ReflectionUtil.cs
- PropertyCollection.cs
- Proxy.cs
- FlowchartDesigner.xaml.cs
- Region.cs
- WindowsFormsHostPropertyMap.cs
- bidPrivateBase.cs
- ToolboxBitmapAttribute.cs
- SystemWebCachingSectionGroup.cs
- ResourcesGenerator.cs
- RoleService.cs
- XmlReflectionImporter.cs
- XmlSchemaInfo.cs
- ByteStreamMessageUtility.cs
- MatcherBuilder.cs
- DllNotFoundException.cs
- EditorZoneBase.cs
- UserMapPath.cs
- Pkcs7Recipient.cs
- RichTextBox.cs
- ReflectionTypeLoadException.cs
- UnsafeNativeMethods.cs
- BuildProviderAppliesToAttribute.cs
- AssemblyAttributes.cs
- ValidatingPropertiesEventArgs.cs
- FileRecordSequence.cs
- FactoryMaker.cs
- GPRECT.cs
- HyperLinkColumn.cs
- TraversalRequest.cs
- WebBrowserNavigatingEventHandler.cs
- ListViewCancelEventArgs.cs
- CapabilitiesUse.cs
- MgmtConfigurationRecord.cs
- TriggerCollection.cs
- RenderData.cs
- MasterPage.cs
- CompressEmulationStream.cs
- WebPartZoneCollection.cs
- _UriSyntax.cs
- WebDescriptionAttribute.cs
- StrokeRenderer.cs
- TextServicesDisplayAttribute.cs
- SignedXml.cs
- Walker.cs
- CodeDomLocalizationProvider.cs
- MemberDomainMap.cs
- TextTreeInsertUndoUnit.cs
- RawStylusInputCustomDataList.cs
- OrderToken.cs
- IssuerInformation.cs
- XmlSchemaGroupRef.cs
- OdbcCommand.cs
- PageTextBox.cs
- TextDecorationUnitValidation.cs
- UnitySerializationHolder.cs
- RichTextBox.cs
- XPathDocumentNavigator.cs
- ThreadExceptionEvent.cs
- XmlStreamStore.cs
- AcceleratedTokenProvider.cs
- SecondaryIndexDefinition.cs
- ListenerElementsCollection.cs
- Metafile.cs
- Rule.cs
- TextLine.cs
- CqlIdentifiers.cs
- VirtualizedItemProviderWrapper.cs
- SizeKeyFrameCollection.cs
- GridViewActionList.cs
- HttpListenerContext.cs
- SqlRemoveConstantOrderBy.cs
- StoreAnnotationsMap.cs
- XmlSerializerSection.cs
- HashRepartitionStream.cs
- UnsafeNativeMethods.cs
- NamespaceList.cs
- XmlILTrace.cs
- XhtmlConformanceSection.cs
- TextBreakpoint.cs
- WebPermission.cs
- CharacterMetrics.cs
- x509store.cs
- XmlDataImplementation.cs
- Msec.cs
- WmlLabelAdapter.cs
- KeyToListMap.cs
- TransformedBitmap.cs
- ComEventsHelper.cs
- TableLayoutPanelDesigner.cs
- ThaiBuddhistCalendar.cs
- GlyphRun.cs
- HtmlEmptyTagControlBuilder.cs