How to use Ignorable="d"
11,261
This will work if you are using Expression blend. As you can see in your mark up
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
"d" is used only for expression blend not for visual studio.
Look at this article if you want to do the same for visual studio, you will have to do some coding for this.
Author by
Nasenbaer
Have a family, sunny weather and on evening a lot of ideas for programming... Public profile is also available on http://www.tb-software.ch
Updated on June 27, 2022Comments
-
Nasenbaer almost 2 years
I want to make my usercontrol with yellow background while designing. After design it should stay transparent. I've tried to use the "Ignore" flag but could not catch how it works.
<UserControl x:Class="Abnehmen_Standard.ucRoundButton" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignHeight="84" d:DesignWidth="84" d:Background="Yellow"
Last row does not work.
Can you advice me?
-
VSS over 12 yearsTry designing your control in a tool called Expression Blend..it allows lots of quick customization to your WPF UIs and also makes use of 'd' namespace, but dont edit manually...
-
Nasenbaer over 12 yearsThanks for your answer. That helps!
-
VSS over 12 yearsThis Stack Overflow answer might help you as its similar: stackoverflow.com/questions/4843276/…
-
Nasenbaer over 12 yearsthanks but no. I know the isInDesign property. But I wonder how to work with this Ignore "d:" flag. And you gave me the answer that is only possible with blend. Thats all I need to know. :-)
-
MikeT over 10 yearsthe schemas.microsoft.com/expression/blend/2008 namespace is supported by VS2010 upwards not sure about VS2008, however only for DesignWidth, DesignHeight and DataContext I beleive
-
-
Nasenbaer over 12 yearsThanks Maheep. In this case I will use your link to check out the designmode and I will no more try stuff I cannot solve :-) Great answer!
-
Admin over 12 yearsIt does work in VS, but only for a few things, such as design time data.