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
- MetadataUtil.cs
- CodeTypeParameter.cs
- OdbcRowUpdatingEvent.cs
- FormsAuthenticationConfiguration.cs
- ChannelServices.cs
- ResourceContainer.cs
- EventDescriptorCollection.cs
- SafeWaitHandle.cs
- ListItemCollection.cs
- ConditionCollection.cs
- RequestBringIntoViewEventArgs.cs
- RadioButtonPopupAdapter.cs
- XmlILStorageConverter.cs
- BaseTypeViewSchema.cs
- ThrowHelper.cs
- BlurEffect.cs
- TextCollapsingProperties.cs
- ShaperBuffers.cs
- Compiler.cs
- TagPrefixInfo.cs
- XmlTextReader.cs
- _SSPIWrapper.cs
- DispatchChannelSink.cs
- Pkcs7Recipient.cs
- MemoryMappedViewAccessor.cs
- OutputWindow.cs
- PropertyOrder.cs
- PersonalizationAdministration.cs
- ToolStripSeparatorRenderEventArgs.cs
- PrimitiveType.cs
- StrongNameUtility.cs
- MessagingDescriptionAttribute.cs
- FrameworkContentElement.cs
- WindowsComboBox.cs
- ServicePointManager.cs
- SystemIPGlobalProperties.cs
- Console.cs
- GroupItemAutomationPeer.cs
- SQLInt64.cs
- Utils.cs
- ObjectHandle.cs
- SubpageParaClient.cs
- PropertySourceInfo.cs
- SizeValueSerializer.cs
- XmlUtil.cs
- ValidateNames.cs
- ResourceDescriptionAttribute.cs
- Model3DGroup.cs
- DrawingAttributes.cs
- PageVisual.cs
- NonSerializedAttribute.cs
- EncryptedPackage.cs
- DataGridViewCellCollection.cs
- DataTableMapping.cs
- Rotation3D.cs
- Span.cs
- FillRuleValidation.cs
- IndentedTextWriter.cs
- Menu.cs
- Scheduling.cs
- InvalidPipelineStoreException.cs
- IntPtr.cs
- TextTreePropertyUndoUnit.cs
- ProfileEventArgs.cs
- WebPartVerbsEventArgs.cs
- FreezableCollection.cs
- SchemaElement.cs
- HttpCookie.cs
- PageAsyncTaskManager.cs
- ListViewCommandEventArgs.cs
- RelatedImageListAttribute.cs
- PageParser.cs
- DES.cs
- XmlTextAttribute.cs
- CodeTypeReferenceCollection.cs
- AnimatedTypeHelpers.cs
- ProxySimple.cs
- SerializationTrace.cs
- PageHandlerFactory.cs
- DetailsViewUpdatedEventArgs.cs
- ClientUtils.cs
- Ref.cs
- SiteMapDataSourceView.cs
- ImageFormat.cs
- xml.cs
- VerificationAttribute.cs
- CultureSpecificStringDictionary.cs
- SqlUtil.cs
- XmlCodeExporter.cs
- ControlPaint.cs
- XmlUTF8TextWriter.cs
- EventLogPermissionEntry.cs
- DataControlPagerLinkButton.cs
- ThreadPool.cs
- KnowledgeBase.cs
- SqlDataSourceView.cs
- XslTransform.cs
- SqlUserDefinedTypeAttribute.cs
- SQLDecimalStorage.cs
- Knowncolors.cs