Files
docs-desktop/dotnet-desktop-guide/framework/wpf/advanced/mc-processcontent-attribute.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

2.9 KiB

title, ms.date, helpviewer_keywords, ms.assetid
title ms.date helpviewer_keywords ms.assetid
mc:ProcessContent Attribute 03/30/2017
mc:ProcessContent attribute
XAML [WPF], mc:ProcessContent attribute
2689b2c8-b4dc-4b71-b9bd-f95e619122d7

mc:ProcessContent Attribute

Specifies which [!INCLUDETLA2#tla_xaml] elements should still have content processed by relevant parent elements, even if the immediate parent element may be ignored by a [!INCLUDETLA2#tla_xaml] processor due to specifying mc:Ignorable Attribute. The mc:ProcessContent attribute supports markup compatibility both for custom namespace mapping and for [!INCLUDETLA2#tla_xaml] versioning.

XAML Attribute Usage

<object  
  xmlns:ignorablePrefix="ignorableUri"  
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"  
  mc:Ignorable="ignorablePrefix"...  
  mc:ProcessContent="ignorablePrefix:ThisElementCanBeIgnored"  
>  
    <ignorablePrefix:ThisElementCanBeIgnored>  
        [content]  
    </ignorablePrefix:ThisElementCanBeIgnored>  
</object>  

XAML Values

ignorablePrefix Any valid prefix string, per the XML 1.0 specification.
ignorableUri Any valid URI for designating a namespace, per the XML 1.0 specification.
ThisElementCanBeIgnored An element that can be ignored by [!INCLUDETLA#tla_xaml] processor implementations, if the underlying type cannot be resolved.
[content] ThisElementCanBeIgnored is marked ignorable. If the processor ignores that element, [content] is processed by object.

Remarks

By default, a [!INCLUDETLA2#tla_xaml] processor will ignore content within an ignored element. You can specify a specific element by mc:ProcessContent, and a [!INCLUDETLA2#tla_xaml] processor will continue to process the content within the ignored element. This would typically be used if the content is nested within several tags, at least one of which is ignorable and at least one of which is not ignorable.

Multiple prefixes may be specified in the attribute, using a space separator, for example: mc:ProcessContent="ignore:Element1 ignore:Element2".

The http://schemas.openxmlformats.org/markup-compatibility/2006 namespace defines other elements and attributes that are not documented within this area of the SDK. For more information, see XML Markup Compatibility Specification.

See also