0

WinRT アプリケーションがあり、ユーザーがテーマを選択できるようにしたいのですが、Light/Dark 以外のテーマを定義できますか?

4

1 に答える 1

1

It's not built into the platform currently, so you would need to implement it yourself. The way I would do it would be to replace resource dictionaries at app level and recreate the visual tree when switching dictionaries (e.g. remove and add back the entire control tree - the root Frame, current Page etc. The StaticResource bindings never update so you need to force reevaluation and that should be the easiest way to do it.

于 2013-05-11T00:41:35.597 に答える