开发者

Binding to IsolatedStorageSettings

开发者 https://www.devze.com 2023-01-29 00:41 出处:网络
Binding={Binding Source={x:Static ...}} doesn\'t seem to work, so my static wrapper class doesn\'t work.
Binding={Binding Source={x:Static ...}}

doesn't seem to work, so my static wrapper class doesn't work.

How can we make a 开发者_JAVA百科two-way binding to a key in WP7 IsolatedStorageSettings?


If anyone is wondering, I built a non-static class, which had non-static properties that were simply aliases for the static properties. I then made an instance of it, and added it as a resource to App.xaml, then bound against that resource. This also allows you to add properties like VisibleIfTrial etc.

0

精彩评论

暂无评论...
验证码 换一张
取 消