[UWP]文件路径允许的字符 [英] [UWP] File path allowed characters

查看:48
本文介绍了[UWP]文件路径允许的字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有关于Fall Creators更新的路径问题,也许不仅存在。

我有一些图片,文件名中有哈希字符(#),图片控件中没有显示这些图片。在以前的Windows版本上它已经工作。

I have a path problem on Fall Creators update and maybe not only there.
I have some pictures, which have hash character (#) in file name and these pictures are not shown in Image control. On previous windows version it has worked.

推荐答案

你好neosonne,

Hi neosonne,

我已经在设备上测试了它操作系统构建14393和15063以及相应项目的目标版本,即使可以在XAML设计器的图像控件中显示图片,也无法在运行时在页面上显示图片。如果文件名中有(#)字符,我看不到图像

I have tested it on the device with OS build 14393 and 15063 with the corresponding project’s target version, the pictures can’t be shown on the page at running time even though they can be shown in the Image control in XAML designer. I can not see the image display if there is a (#) character in the file's name.

此外,当我尝试插入"#"时,进入图片名称,VS将警告"请输入有效名称"并提供更多信息,如下图所示。在命名图像文件时应遵守规则。

Moreover, when I try to insert a "#" into a picture name, the VS will warn "Please enter a valid name" and with more info as the following image. You should obey the rule when you name the image file.

祝你好运,

Breeze


这篇关于[UWP]文件路径允许的字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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