Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
UI に表示したい文字列データがいくつかありますが、それらを xaml ページに書きたくないのですが、どこに保存して、ページが表示されたときに動的にロードできますか? それらを app.xaml に保存するのは正しい方法ですか?
アプリ レベルの静的文字列データを埋め込みリソースとして保存できます。
文字列リソースの使用を参照してください
これは、多言語サポートの将来の潜在的なニーズにも対応します。
AppResources.resx のように使用できます。 文字列データを格納します。
次のように使用します。
textblock.text= AppResources.xxxxxxx