简体   繁体   中英

Binding to IsolatedStorageSettings

Binding={Binding Source={x:Static ...}}

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

How can we make a 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM