I have a ListBox
data bound to an ObservableCollection<Employee>
. It is working well. I need to change the FontFamily and FontSize based on user setting in IsolatedStorageSettings.ApplicationSettings
. Can anyone suggest the best design pattern for a situation such as this? I am trying to avoid doing this in C# code behind. It would be better if I can bind the FontSize and FontFamily properties in the ListBox
data template to the values in the ApplicationSettings
. Not sure how to do it.
将FontFamily和FontSize作为属性加载到ViewModel中,并绑定到它们。
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.