@at start of WP7 tile name replaced with path: known issue?

I use the ShellTile.Create method to create a secondary tile. Users of the application I developed noticed that if the entity they are committing has a name that starts with "@" (which is then used to title the fragment), then the title displayed by the phone is @ \ Applications \ "....

It seems to me that the phone considers "@" at the beginning of the name somehow special and replaces it with the path ...

Here I install ShellTileData . Title to "@Test". This is what makes fun of:

Screenshot showing pinned tile with weird name

I tried the UrlEncoding name - no luck.

Has anyone come across this before? Is this a known issue?

Damian

I accepted Colin's answer below. This is the code I'm using now based on his suggestion:

... if(initialData.Title.StartsWith("@")) { initialData.Title = '\uff20' + initialData.Title.Substring(1); } ShellTile.Create(uri, initialData); 
+4
source share
3 answers

According to my comment ... give \uFF20 a go, I doubt anyone will notice the difference between @ and @.

+1
source

Microsoft Eric Fleck answered here: http://forums.create.msdn.com/forums/p/100059/598687.aspx#598687

There is a mention of a problem in the โ€œBeware the @ signโ€ section of Peter Torr's blog: http://blogs.msdn.com/b/ptorr/archive/2011/07/12/background-agents-part-3-of-3. aspx p>

Peter recommends adding unicode with zero char (8203) space to the beginning of the fragment names starting with @.

+1
source

Well, when you guys say โ€œcode,โ€ all I know is the โ€œ@โ€ character, which is provided by entering โ€œshift + 2โ€ by your EU average, is extremely common. This is the GTD "Getting Things Done" practice that has been around for several years. Thus, this may be more common than the average dev / coder might think.

Thank you at the same time for looking at this Damian.

0
source

Source: https://habr.com/ru/post/1396156/


All Articles