Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Rules.cs
- Win32Exception.cs
- TypeElement.cs
- TreeViewCancelEvent.cs
- DBConnection.cs
- UrlPropertyAttribute.cs
- DateTimeConstantAttribute.cs
- CrossAppDomainChannel.cs
- SessionParameter.cs
- EntityDataSourceChangingEventArgs.cs
- RelationshipWrapper.cs
- SqlDataSourceConfigureFilterForm.cs
- RouteData.cs
- ListChunk.cs
- MetadataFile.cs
- PenLineCapValidation.cs
- EventMappingSettingsCollection.cs
- CompositionAdorner.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- ScriptHandlerFactory.cs
- ThemeDictionaryExtension.cs
- Repeater.cs
- ListViewDataItem.cs
- ClassicBorderDecorator.cs
- DataGridViewLinkCell.cs
- CreateUserErrorEventArgs.cs
- TextSchema.cs
- GroupQuery.cs
- ExtenderControl.cs
- ObjectTypeMapping.cs
- ImportException.cs
- Win32SafeHandles.cs
- RunWorkerCompletedEventArgs.cs
- PanelStyle.cs
- TypeUnloadedException.cs
- ControlPropertyNameConverter.cs
- WSHttpBindingBaseElement.cs
- StreamUpdate.cs
- Point3DAnimationBase.cs
- SoapServerProtocol.cs
- BaseDataBoundControl.cs
- VisualCollection.cs
- WCFServiceClientProxyGenerator.cs
- PackageController.cs
- XmlLanguage.cs
- FixedSOMElement.cs
- RawKeyboardInputReport.cs
- TemplateApplicationHelper.cs
- CngKeyBlobFormat.cs
- LicenseContext.cs
- FamilyMapCollection.cs
- ClientTarget.cs
- BooleanFunctions.cs
- FirstMatchCodeGroup.cs
- Assert.cs
- ProjectionPathSegment.cs
- Registry.cs
- FormatVersion.cs
- PersonalizationStateInfo.cs
- PropertyInfoSet.cs
- AttributeUsageAttribute.cs
- AssemblyInfo.cs
- IntellisenseTextBox.cs
- ServiceNameCollection.cs
- RowType.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- PartBasedPackageProperties.cs
- LockCookie.cs
- SQLDouble.cs
- HttpConfigurationSystem.cs
- TextEndOfLine.cs
- MsdtcWrapper.cs
- SubstitutionList.cs
- XmlException.cs
- UiaCoreApi.cs
- Object.cs
- StringFunctions.cs
- TypedTableBaseExtensions.cs
- Margins.cs
- HttpContext.cs
- EndpointDiscoveryBehavior.cs
- WebPartAuthorizationEventArgs.cs
- PointCollection.cs
- PermissionListSet.cs
- HierarchicalDataSourceControl.cs
- DSACryptoServiceProvider.cs
- NotifyInputEventArgs.cs
- XmlSchemaFacet.cs
- IntSecurity.cs
- WebSysDisplayNameAttribute.cs
- MatrixTransform.cs
- DescendantBaseQuery.cs
- Stackframe.cs
- OdbcHandle.cs
- Wildcard.cs
- SqlFileStream.cs
- FixedLineResult.cs
- BinaryNode.cs
- Column.cs
- DataError.cs