Nas*_*aer 7 wpf xaml windows-phone-7
我想在设计时使用黄色背景进行用户控制.设计后应保持透明.我试图使用"忽略"标志,但无法理解它是如何工作的.
<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"
Run Code Online (Sandbox Code Playgroud)
最后一行不起作用.
你能建议我吗?
如果您使用表达式混合,这将有效.正如你在标记中看到的那样
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
Run Code Online (Sandbox Code Playgroud)
"d"仅用于表达混合,不适用于视觉工作室.
看看这篇文章,如果你想为visual studio做同样的事情,你将不得不为此做一些编码.
归档时间: |
|
查看次数: |
10634 次 |
最近记录: |