[UWP] [XAML]使用旧图像的Visual Studio 2017 Designer [英] [UWP][XAML]Visual Studio 2017 Designer Using Old Image

查看:58
本文介绍了[UWP] [XAML]使用旧图像的Visual Studio 2017 Designer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序中有几个图像(* .png文件),我用它作为我的XAML代码中某些图像标记的来源。但是,在我用更新的图像替换图像后,Visual Studio 2017中的XAML设计器仍在使用旧图像。我假设
设计师将它们缓存在某处(因为我删除了它们)。如果我使用具有不同名称的新图像,那很好,但是一旦我将名称更改回旧名称,它就会使用已删除的文件。我试过关闭Visual Studio 2017,关闭* .xaml文件,
甚至重启我的电脑。我该怎么做才能让设计师使用新图像而不是旧图像(无论它从何处获取)?



Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

解决方案

< blockquote>你有没有可能只从项目中删除图像而不是从磁盘中删除?


I have several images (*.png files) in my app, which I use as the sources for some of the Image tags in my XAML code. However, after I replaced the images with newer ones, the XAML designer in Visual Studio 2017 is still using the old ones. I am assuming the designer has them cached somewhere (because I deleted them). If I use the new images with different names it is fine, but once I change the name back to the old one it uses the deleted file. I have tried closing Visual Studio 2017, closing the *.xaml file, even rebooting my computer. What can I do to make the designer use the new images instead of the old ones (wherever it is getting them from)?


Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

解决方案

Is there any possible you only remove the image from the project instead of remove from the disk?


这篇关于[UWP] [XAML]使用旧图像的Visual Studio 2017 Designer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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