String
辞書からを使用しようとしています:
<?xml version="1.0" encoding="utf-8" ?>
<Dictionary EnglishName="English" CultureName="English" Culture="en-US">
...
<Value Id="ButtonSuppressFieldInformation"
ToolTip="Remove field" Name="Remove field number "/>
...
</Dictionary>
ConverterParamter
複数の言語のサポートを有効にするには、次のようにします。
<Button>
...
<AutomationProperties.Name>
<MultiBinding
Converter="{StaticResource IndexedForAutomationId}"
ConverterParameter="{loc:Translate
Uid=ButtonSuppressFieldInformation, Default=Delete field}">
<Binding RelativeSource="{RelativeSource Self}" />
<Binding ElementName="MyContactDirectoryView"
Path="ListConditionToSearch" />
</MultiBinding >
</AutomationProperties.Name>
</Button>
ただし、表示されるのは数字(IndexedForAutomationId
)のみで、は表示されstring
ません。
string
作品の代わりに使用する"{loc:Translate Uid=ButtonSuppressFieldInformation, Default=Delete field}"
:
<MultiBinding Converter="{StaticResource IndexedForAutomationId}"
ConverterParameter="Delete field">
を表示しDelete field 0
ます。
loc:Translate
ConverterParameterとして使用する方法は何ですか?