Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Ignorable="d"

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?

like image 800
Nasenbaer Avatar asked Jan 04 '12 12:01

Nasenbaer


1 Answers

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.

like image 178
Maheep Avatar answered Oct 06 '22 23:10

Maheep