Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Windows phone 8 live互动程序上的数据绑定_C#_Xml_Windows Phone_Live Tile - Fatal编程技术网

C# Windows phone 8 live互动程序上的数据绑定

C# Windows phone 8 live互动程序上的数据绑定,c#,xml,windows-phone,live-tile,C#,Xml,Windows Phone,Live Tile,我正试图在我的Windows Phone 8应用程序中的live tiles的“backcontent”中绑定一些字符串,以根据智能手机的语言更改文本,但我找不到方法。带有静态字符串的瓷砖工作正常。 这是我的“WMAppManifest.xml”的“tokens”块: <Tokens> <PrimaryToken TokenID="PhoMod_VToken" TaskName="_default"> <TemplateFlip > &

我正试图在我的Windows Phone 8应用程序中的live tiles的“backcontent”中绑定一些字符串,以根据智能手机的语言更改文本,但我找不到方法。带有静态字符串的瓷砖工作正常。 这是我的“WMAppManifest.xml”的“tokens”块:

<Tokens>
  <PrimaryToken TokenID="PhoMod_VToken" TaskName="_default">
    <TemplateFlip >
      <SmallImageURI IsRelative="true" IsResource="false">Assets\Tiles\IconicTileSmall.png</SmallImageURI>
      <Count>0</Count>
      <BackgroundImageURI IsRelative="true" IsResource="false">Assets\Tiles\IconicTileMedium.png</BackgroundImageURI>
      <Title>PhoMod 3D
      </Title>
      <BackContent>Capture, view and share your world in 3D</BackContent>
      <BackBackgroundImageURI IsRelative="true" IsResource="false">Assets\Tiles\IconicTileMedium_Back.png</BackBackgroundImageURI>
      <BackTitle>PhoMod 3D
      </BackTitle>
      <LargeBackgroundImageURI IsRelative="true" IsResource="false">Assets\Tiles\IconicTileLarge.png</LargeBackgroundImageURI>
      <LargeBackContent>Capture, view and share your world in 3D</LargeBackContent>
      <LargeBackBackgroundImageURI IsRelative="true" IsResource="false">Assets\Tiles\IconicTileLarge_Back.png</LargeBackBackgroundImageURI>
      <DeviceLockImageURI IsRelative="true" IsResource="false">
      </DeviceLockImageURI>
      <HasLarge>True</HasLarge>
    </TemplateFlip>
  </PrimaryToken>
</Tokens>

资产\Tiles\IconicTileSmall.png
0
资产\Tiles\IconicTileMedium.png
PhoMod 3D
在3D中捕获、查看和共享您的世界
Assets\Tiles\IconicTileMedium_Back.png
PhoMod 3D
资产\Tiles\IconicTileLarge.png
在3D中捕获、查看和共享您的世界
资产\Tiles\IconicTileLarge\u Back.png
符合事实的

请建议一条路。提前感谢。

无法将值绑定到WMAppManifest.xml。您需要以编程方式创建包含所需文本的新平铺,并更新默认平铺

检查以下链接:


谢谢@Parad1s3。我试过了,它可以工作,但是,当用户在应用程序列表中长时间点击应用程序时,触摸上下文菜单上显示的“pin to start”(pin to start)时,我如何才能通过拖拽代码来生成互动程序?这是不可能的。然而,这并不重要。即使应用程序未固定在用户的开始屏幕上,您也可以更新主磁贴,并且下次用户固定应用程序时,系统将使用更新的版本。