Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

How can I apply the preprocessor to a root level element that already has a namespace? #12

Open
mrbedo opened this issue Aug 18, 2016 · 1 comment
Labels

Comments

@mrbedo
Copy link

mrbedo commented Aug 18, 2016

For example, when I want to exclude MyCustomWindow from compiling:

<myns:MyCustomWindow
    x:Class="My.Namespace.MyCustomWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:myns="clr-namespace:My.Namespace"
    xmlns:IF_DEBUG="condition:DEBUG"
    mc:Ignorable="d IF_DEBUG">
</myns:MyCustomWindow>

How would I do that? <IF_DEBUG:myns:MyCustomWindow??? wouldn't work in wpf.

Otherwise, great tool!

@kozw
Copy link
Contributor

kozw commented Sep 20, 2016

Good point, this particular scenario is not supported by XCC. When rewriting xml prefixed elements, XCC falls back to the default root namespace. You can't currently rewrite an element or attribute to another namespace.

This one requires some thinking

@kozw kozw added the bug label Sep 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants