- David Jefferies
- Posts: 27
- Joined:
Error thrown when defining multiple Ignorable prefixes
We want to have two Ignorable prefixes - the usual prefix 'd' and also 'design_only'
In Blend the syntax appears to be
However Noesis gives the error
Am I missing a step or is multiple ignorable prefixes not supported?
In Blend the syntax appears to be
Code: Select all
mc:Ignorable="d design_only">
Code: Select all
<Viewbox x:Name="RootViewbox" Opacity="0" design_only:Opacity="1">
Code: Select all
Prefix 'design_only' is not defined
Re: Error thrown when defining multiple Ignorable prefixes
The prefixes in the Ignorable section must be declared too. Something like this works
Code: Select all
<Grid
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:design_only="ignorableUri"
mc:Ignorable="d design_only">
<StackPanel>
<d:TextBlock>ONE</d:TextBlock>
<design_only:TextBlock>TWO</design_only:TextBlock>
<TextBlock>THREE</TextBlock>
</StackPanel>
</Grid>
- David Jefferies
- Posts: 27
- Joined:
Re: Error thrown when defining multiple Ignorable prefixes
Thanks for the reply - I see now the problem was that I was declaring both the prefixes to be the same
By changing the design_only prefix to be some other Uri, as in your example, it now works
thanks!
Code: Select all
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:design_only="http://schemas.microsoft.com/expression/blend/2008"
Code: Select all
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:design_only="ignorableUri"
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 8 guests