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.

Share:
11,261
Nasenbaer
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, 2022

Comments

  • Nasenbaer
    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
      VSS over 12 years
      Try 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
      Nasenbaer over 12 years
      Thanks for your answer. That helps!
    • VSS
      VSS over 12 years
      This Stack Overflow answer might help you as its similar: stackoverflow.com/questions/4843276/…
    • Nasenbaer
      Nasenbaer over 12 years
      thanks 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
      MikeT over 10 years
      the 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
    Nasenbaer over 12 years
    Thanks 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
    Admin over 12 years
    It does work in VS, but only for a few things, such as design time data.