WalletItem类似的MembershipCard不会在背面显示字段 [英] WalletItem of kind MembershipCard does not show fields on the back
问题描述
我有一个mswallet文件,其中包含Kind MembershipCard。
I have a mswallet file that has the Kind MembershipCard.
它在"base"下有几个Property元素。属性元素。
It has a couple of Property elements under the "base" Property element.
通常(使用BoardingPass测试)这些显示在卡的背面。
Normally (tested with BoardingPass) these show up on the back of the card.
但是它们不适用于此钱包项目。
However they don't for this wallet item.
我该怎么做才能让这些属性出现在卡的背面?
What can I do to make these Properties appear on the back of the card?
这是WalletItem.xml:
Here is the WalletItem.xml:
<?xml version="1.0" encoding="utf-16"?>
<WalletEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PassbookConverter.Wallet">
<AuthenticationToken>0x2ffc8a669a54b595ba2967a468219a8889111725</AuthenticationToken>
<Barcode>
<Symbology>PDF417</Symbology>
<Value>11111111111111111</Value>
</Barcode>
<BodyColor>#000000</BodyColor>
<BodyFontColor>#FFFFFF</BodyFontColor>
<DisplayMessage>Myer Gift Card</DisplayMessage>
<DisplayName>Myer Gift Card</DisplayName>
<DisplayProperties>
<Footer>
<Property>
<AutoDetectLinks>true</AutoDetectLinks>
<Key>11111111111111111</Key>
<Name> </Name>
<Value>11111111111111111</Value>
</Property>
<Property>
<AutoDetectLinks>true</AutoDetectLinks>
<Key>opening-balance</Key>
<Name>Opening Balance</Name>
<Value>$50.00</Value>
</Property>
<Property>
<AutoDetectLinks>true</AutoDetectLinks>
<Key>pin</Key>
<Name>Access Code</Name>
<Value>1111</Value>
</Property>
</Footer>
<Header>
<Property>
<AutoDetectLinks>true</AutoDetectLinks>
<Key>headerbalance</Key>
<Name>Current Balance</Name>
<Value>$4.75</Value>
</Property>
</Header>
<Primary />
<Property>
<Property>
<AutoDetectLinks>true</AutoDetectLinks>
<Key>cardnumber</Key>
<Name>Card Number</Name>
<Value>11111111111111111</Value>
</Property>
<Property>
<AutoDetectLinks>true</AutoDetectLinks>
<Key>pin</Key>
<Name>Access Code</Name>
<Value>1111</Value>
</Property>
<Property>
<AutoDetectLinks>true</AutoDetectLinks>
<Key>terms</Key>
<Name>Terms and Conditions</Name>
<Value>Key Conditions of Use: Treat this Gift Card as cash. Lost or stolen Gift Cards will not be replaced or refunded. Not to be used for the payment of credit or store accounts, online purchases and some leased businesses. Not redeemable for cash and cannot be exchanged. This card will expire 2 years from the issue date. Any unused amount after the expiry date of this card will not be refunded or credited. Gift Cards are not reloadable. To be used for the purchase of goods and services at Myer stores around Australia. For full Terms of Use visit myer.com.au/giftcards or call 1300 398 226.</Value>
</Property>
<Property>
<AutoDetectLinks>true</AutoDetectLinks>
<Key>powered</Key>
<Name>Powered by Vii</Name>
<Value> </Value>
</Property>
</Property>
<Secondary>
<Property>
<AutoDetectLinks>true</AutoDetectLinks>
<DateTimeFormat>ShortDate</DateTimeFormat>
<Key>expiry</Key>
<Name>Expiry Date</Name>
<Value>2016-08-15T00:00Z</Value>
</Property>
</Secondary>
</DisplayProperties>
<HeaderColor>#000000</HeaderColor>
<Id>11111111111111111</Id>
<IsDisplayMessageLaunchable>false</IsDisplayMessageLaunchable>
<IsMoreTransactionHistoryLaunchable>false</IsMoreTransactionHistoryLaunchable>
<IssuerDisplayName>Myer Gift Card</IssuerDisplayName>
<Kind>MembershipCard</Kind>
<LogoText></LogoText>
<Version>1</Version>
</WalletEntry>
以下是卡片背面的屏幕截图
Here is a screenshot of the back of the card
这里有一个完整的mswallet文件的下载链接
And here a download link to the full mswallet file
http://1drv.ms/1CCGH5f
http://1drv.ms/1CCGH5f
推荐答案
Hi wertzui,
Hi wertzui,
>>如何让这些属性显示在卡片的背面?
>>What can I do to make these Properties appear on the back of the card?
你的意思是钱包项目的详细信息视图?
Do you mean the wallet item's details view?
如果是这样,根据我的经验,答案是否定的,要创建钱包项目包包,这个XML文件(WalletItem.xml)必须遵守WalletItem。 xsd架构:
http://go.microsoft.com/fwlink/p/?LinkId=394128
If so, In my experience, the answer is no, to create a wallet item package package, this XML file(WalletItem.xml) must adhere to the WalletItem.xsd schema: http://go.microsoft.com/fwlink/p/?LinkId=394128
在项目的详细信息视图中只能显示几个信息,这在官方文档中已有解释:
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn631256.aspx
Only several informations can be shown in the item's details view, this has been explained in this official document: https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn631256.aspx
例如,DisplayMessage - 将在项目的详细信息视图中显示的消息
For example, DisplayMessage - The message that will be shown in the item's details view
这篇关于WalletItem类似的MembershipCard不会在背面显示字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!