网格背景 [英] Grid Background
问题描述
未设置背景图片,出现错误
在"System.Windows.Baml2006.TypeConverterMarkupExtension"上提供值引发了异常."行号"18"和行位置"14".
我的代码就像
Background Image is not set, gives error
''Provide value on ''System.Windows.Baml2006.TypeConverterMarkupExtension'' threw an exception.'' Line number ''18'' and line position ''14''.
My code is like
<Grid>
<Grid.Background>
<ImageBrush ImageSource="Logo.PNG" Stretch="Fill">
</ImageBrush >
</Grid.Background>
<TextBlock>Hello this is just simple text within grid</TextBlock>
</Grid>
我在Google上找到了答案,说关闭VS并重新启动即可解决问题
但这不起作用
可能是什么问题?
在此先感谢
编辑
@Kassor,是的,我正在使用XP SP3,但没有任何按键
在PersistentHandler"{098f2470-bae0-11cd-b579-08002b30bfeb}"下有类似的内容
I google and found answer saying close VS and restart it solve problem
but it doesn''t work
what could be problem ?
Thanks in advance
Edit
@Kassor , Yes I am using XP SP3 but there is no key
there is something like this under PersistentHandler "{098f2470-bae0-11cd-b579-08002b30bfeb}"
推荐答案
您使用什么操作系统?
如果是XP SP3,则
检查注册表中的HKEY_CLASSES_ROOT \ .png项.
What operating system do you use?
if it is XP SP3 then
check the HKEY_CLASSES_ROOT\.png key in your registry.
这篇关于网格背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!