Skip to content

ReplaceNamespaceDeclaration Xaml Mapping Action

ldfallas edited this page Aug 17, 2015 · 2 revisions

Description

Replaces existing Xml/Xaml namespace declarations .

This action is used to replace an existing Xml/Xaml namespace declaration that matches a regular expression, with a new value.

Properties

​Property ​Usage ​Description
​AttributeValueRegex ​Required A regular expression used to match the existing value of the Xml/Xaml namespace declaration
​Replacement Required​ The replacement string for the namespace declaration

Example

The following example replaces the clr-namespace:... style to the using:.... style

<xmap:ReplaceNamespaceDeclaration AttributeValueRegex="clr-namespace:[ ]*([^;]*)(;.*)?$" Replacement="using:$1" />

Notes

  • .NET Regular expression replacement groups can be used in the replacement value

Overview

Writing mappings

Code Mapping Actions

Code Mapping Conditions

XAML mapping actions

XAML mapping conditions

Misc

Clone this wiki locally