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
- IdleTimeoutMonitor.cs
- ColorConvertedBitmap.cs
- XmlCharCheckingReader.cs
- XmlSignatureProperties.cs
- TextElement.cs
- InputReportEventArgs.cs
- WaitForChangedResult.cs
- DataGridItemEventArgs.cs
- PageVisual.cs
- GroupLabel.cs
- BindingNavigatorDesigner.cs
- Domain.cs
- Paragraph.cs
- FtpWebResponse.cs
- WebPartEventArgs.cs
- Socket.cs
- RuleAction.cs
- _ConnectStream.cs
- TextSelectionHighlightLayer.cs
- SafeLocalAllocation.cs
- LinkConverter.cs
- ParameterModifier.cs
- DocumentReferenceCollection.cs
- PhoneCall.cs
- TextDecorationLocationValidation.cs
- SQLChars.cs
- NullableLongAverageAggregationOperator.cs
- TextBoxView.cs
- CultureInfoConverter.cs
- GridProviderWrapper.cs
- LazyTextWriterCreator.cs
- RegistrySecurity.cs
- InkPresenter.cs
- GeneralTransform3DTo2D.cs
- BackoffTimeoutHelper.cs
- Root.cs
- cache.cs
- BaseTreeIterator.cs
- XmlNavigatorStack.cs
- ContractAdapter.cs
- TcpChannelHelper.cs
- ProviderConnectionPoint.cs
- ContentType.cs
- WmlValidationSummaryAdapter.cs
- ExternalCalls.cs
- CatalogPart.cs
- ListBindingHelper.cs
- StyleXamlParser.cs
- ResourceSet.cs
- ObjectKeyFrameCollection.cs
- TabControl.cs
- TargetException.cs
- DataStreamFromComStream.cs
- ObjectViewEntityCollectionData.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- InvokeCompletedEventArgs.cs
- DesignerAdapterUtil.cs
- OperationContractGenerationContext.cs
- BevelBitmapEffect.cs
- QilLiteral.cs
- RegistrationServices.cs
- GridErrorDlg.cs
- SettingsProviderCollection.cs
- Pair.cs
- XmlSerializerFactory.cs
- UxThemeWrapper.cs
- GridViewHeaderRowPresenter.cs
- XmlSerializerNamespaces.cs
- DocumentCollection.cs
- OSFeature.cs
- PointIndependentAnimationStorage.cs
- PropertyEntry.cs
- NavigationProperty.cs
- ListViewInsertionMark.cs
- SoapSchemaExporter.cs
- TraceHwndHost.cs
- LambdaCompiler.cs
- ConstNode.cs
- XmlTextReaderImpl.cs
- TranslateTransform.cs
- ObjectDataSourceChooseMethodsPanel.cs
- TcpChannelHelper.cs
- FormatConvertedBitmap.cs
- ValidatedControlConverter.cs
- infer.cs
- MulticastOption.cs
- CompoundFileDeflateTransform.cs
- MatrixCamera.cs
- ContainerAction.cs
- BufferedOutputAsyncStream.cs
- SymmetricSecurityProtocol.cs
- Internal.cs
- GB18030Encoding.cs
- WebEncodingValidator.cs
- ImmComposition.cs
- Enlistment.cs
- TextBox.cs
- CharAnimationUsingKeyFrames.cs
- ListViewGroupItemCollection.cs
- MimeMultiPart.cs