This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I'd like to let my viewmodel provide the IDataSource for a LoopingListBox. Like so: <Mindscape_PhoneElements:LoopingListBox DataSource="{Binding MyRange}" /> where "MyRange" is of type IDataSource This works fine at runtime. However, trying to specify design time sample data, and a NullReferenceException is what Blend encounters. My sample data tries to assign MyRange like so: <local:MainViewModel.MyRange> So it appears something is awry with the NumericDataSource in it doesn't seem possible to use as design time data. Is there some way to make this work, or an alternative way to initialize an IDataSource for use as design-time data for a LoopingListBox? |
|
|
Hello and thanks for pointing this out. I was unable to reproduce this NullReferenceException in Blend. Everything is working as expected at my end. We probably have different versions of Blend. Though I have included bug fixes and null checks in the most likely places to solve this issue. This update can be downloaded through the nightly builds from tomorrow the 3rd of May. Let me know if the exception is still occuring. Cheers |
|
|
I ended up creating my whole designtime viewmodel in code rather than xaml. If I encouter this again I will definitely let you know. I downloaded the latest nightly build just to be safe (well, as safe as nightly builds can be? :) ) |
|