Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- PathFigure.cs
- BrowserCapabilitiesFactoryBase.cs
- SelectionList.cs
- KeyBinding.cs
- DrawingDrawingContext.cs
- PageTheme.cs
- HttpContext.cs
- HttpCookiesSection.cs
- GeneralTransform2DTo3D.cs
- HTTPRemotingHandler.cs
- CounterSample.cs
- UriSection.cs
- TextLineResult.cs
- ComplexPropertyEntry.cs
- RegexCaptureCollection.cs
- DocumentXPathNavigator.cs
- ConfigurationManager.cs
- TransactionTraceIdentifier.cs
- WebPartEditorOkVerb.cs
- MatcherBuilder.cs
- HtmlUtf8RawTextWriter.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- PeerToPeerException.cs
- LiteralControl.cs
- UserControlBuildProvider.cs
- ValidatingPropertiesEventArgs.cs
- AuthorizationRuleCollection.cs
- FlowDocumentScrollViewer.cs
- ConfigurationCollectionAttribute.cs
- NetworkInterface.cs
- XPathAncestorIterator.cs
- BuildResultCache.cs
- UiaCoreTypesApi.cs
- PolicyManager.cs
- _SslState.cs
- XmlDataSource.cs
- ConnectionManagementSection.cs
- OutputCacheSection.cs
- IndentedTextWriter.cs
- SecurityDescriptor.cs
- X509Utils.cs
- InkSerializer.cs
- InvalidComObjectException.cs
- InstanceKeyCompleteException.cs
- SqlCachedBuffer.cs
- CharacterString.cs
- Attributes.cs
- DocumentOrderComparer.cs
- PersonalizationProviderCollection.cs
- BrowserDefinitionCollection.cs
- XmlNotation.cs
- ActivationServices.cs
- WebPartsPersonalizationAuthorization.cs
- GridItemPattern.cs
- QueryCacheManager.cs
- NamedPermissionSet.cs
- TextRenderer.cs
- CorePropertiesFilter.cs
- DataGridViewImageColumn.cs
- _CacheStreams.cs
- TraceUtility.cs
- CroppedBitmap.cs
- EllipseGeometry.cs
- SoapClientProtocol.cs
- BinaryReader.cs
- NullReferenceException.cs
- LingerOption.cs
- StateItem.cs
- Size3D.cs
- Part.cs
- MemberAccessException.cs
- Vertex.cs
- ListViewItemCollectionEditor.cs
- Converter.cs
- WebPartsPersonalizationAuthorization.cs
- CallbackValidator.cs
- ThrowHelper.cs
- SiteIdentityPermission.cs
- Context.cs
- CustomWebEventKey.cs
- DateTimeOffsetConverter.cs
- MulticastDelegate.cs
- DebuggerService.cs
- ScriptReference.cs
- SpecialNameAttribute.cs
- QuotedStringFormatReader.cs
- SqlConnectionPoolProviderInfo.cs
- InputMethodStateChangeEventArgs.cs
- XmlDownloadManager.cs
- SchemaHelper.cs
- ExpanderAutomationPeer.cs
- XamlPathDataSerializer.cs
- ColorPalette.cs
- HandledMouseEvent.cs
- EventRouteFactory.cs
- XmlSequenceWriter.cs
- DocumentViewerConstants.cs
- CheckBox.cs
- XmlWrappingReader.cs
- DataTableClearEvent.cs