アプリケーションをローカライズしようとしています。リソース ファイル resw の使用方法を学びました。すべてテキストブロックでスムーズです。しかし、ボタンには x:Uid を使用できませんでした。例外が発生します
WinRT 情報: Uid 'Continue' のプロパティの処理中に、プロパティ 'Text' を解決できません。[ライン: 43 ポジション: 82]
しかし、テキストブロックに同じ x:Uid (「続行」と読みます) を使用できます。誰かが私に何が欠けているか教えてもらえますか? 今のところ、ボタンのスタイルを使用していませんが、使用します。
xaml:
<Button Style="{StaticResource DarkButton}" x:Uid="Continue"
Content="Default value" HorizontalAlignment="Right"
VerticalAlignment="Bottom" Margin="0,0,14,14" Height="48" Width="140"
Name="button2" Click="button2_Click_1" IsEnabled="False" />
xml
<data name="Continue.Content" xml:space="preserve">
<value>Continue</value>
</data>
Continue.Text\Continue.Content を resw に追加し、Continue.Width とともに追加しました