图像有时不会出现 [英] Image doesn't appears sometime

查看:100
本文介绍了图像有时不会出现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我有一个Windows 8.1应用程序。在我的着陆屏幕上有几个(4)按钮,其中包含一个图像:

I have a Windows 8.1 app. On my landing screen there are a few (4) buttons with an image in it like this:

  <Button Style="{StaticResource ImageButtonStyle}" VerticalAlignment="Top" Margin="5,0,5,0" Click="MyLogosClick">
	<Image Source="/Assets/my_logos.png" Stretch="None" />
  </Button>

问题在于,出于某种原因,这些按钮完全随机地从屏幕上消失 - 这会在屏幕加载时发生,例如,如果你正在启动屏幕,或者您正在关闭此屏幕前面的另一个屏幕。您可以看到此按钮
没有Name属性,因此代码中没有用于隐藏它的选项。我已经看过两次这个错误,但无法重现它。我同意这是一个罕见的错误,但我想知道这是一个Windows错误或我的应用程序中的错误?

The problem is that for some reason and totally randomly these buttons disappears from the screen - this happens on screen load, for example if you are starting the screen or you are closing another screen in front of this screen. You can see that this button doesn't have a Name attribute so there is no option in the code for hiding it. I have seen this error twice, but cannot reproduce it. I agree that this is a rare error, but I want to know if this is a windows error or an error in my app?

谢谢

Laci

推荐答案

别担心,这是一个Windows错误。
Don't worry, it's a windows error.


这篇关于图像有时不会出现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆