Reputation: 15552
I found the different are: Data Store: - Property-Value pair - No random data
Data Source - Property-Value pair under Collection - Random data
Does these 2 feature is helper to create XAML? What different between them and what's the aims of usage? Thanks you.
Upvotes: 0
Views: 2299
Reputation: 10310
The DataSource
is used for sample data. You can use sample data to have some data to work with when designing your application. In the end you will replace the sample data with real data when running the app. More on sample data here.
A DataStore is used in combination with Behaviors
, Data behaviors to be more specific. Sometimes you need to store a property to make a design work, a simple counter for example that triggers a change in design when a certain limit is reached. You could add this to your ViewModel
and bind it to your view, but sometimes it will just clutter the ViewModel.
Upvotes: 2