Questions tagged [design-time-data]
41 questions
0
votes
1 answer
WPF Design Time Data in Menu Subitem Style
I have a WPF project with a menu. One of the menus has subitems dynamically generated by binding to a collection in code behind. Here is the XAML for this item:
0
votes
1 answer
Design time data in WPF / Silverlight - how to use wrapper classes correctly?
I am facing a problem of "design time support" best practices. I am using PRISM, and my objects are created by a DI container. Lets assume the following simple scenario:
I have an object workflow. This workflow has several properties, and there is a…

Christian Ruppert
- 3,749
- 5
- 47
- 72
0
votes
1 answer
Design Time Data Interface Implementation
I have a ViewModel class like this
public class MyViewModel : ViewModelBase
{
public MyViewModel()
{
if (!IsInDesignMode)
{
throw new InvalidOperationException();
}
}
public…

metacircle
- 2,438
- 4
- 25
- 39
0
votes
1 answer
Windows Universal App DesignTime Loading json File
I'm developing a Windows Universal App and in one of my views I'm trying to use DesignTime Data. In my ViewModel i created a condition for loading real or dummy data:
if(IsInDesignModeStatic || IsInDesignMode)
{
var service = new…

Sven Lauterbach
- 400
- 2
- 16
0
votes
0 answers
WPF Design Time Data and Data Templates
I'm developing a WPF user control and I want it to display some design-time data. It's proving to be quite a challenge to get things just right and I could really use your help.
Here's my control so far, basically a :

Tim Long
- 13,508
- 19
- 79
- 147
0
votes
1 answer
DesignInstance not working properly help needed
I'm using a
public class ObservableDictionary : IObservableMap
..to bind to in my XAML for design time data. I'm using the same ObservableDictionary class that's created when you create a default Windows Store App. My MainPage…

Nasheayahu
- 49
- 8
0
votes
3 answers
Creating design time data for a xaml app
I have a windows phone runtime app and it tired to generate design time data using Expression Blend. The problem is that some of my classes nested classes and the design data will not compile. Here is a class that I am using to generate design time…

sidy3d
- 440
- 2
- 8
- 22
0
votes
0 answers
Design Time Windows Store App with JSON
I am trying to create a windows store app using a Blank Windows 8 store App and can't get basic Design time working. I am obviously missing something simple, but with the research I have done don't see the difference
Here is my…

gcoleman0828
- 1,541
- 3
- 30
- 49
0
votes
2 answers
Caliburn.micro design time data for WinRT - object reference not set to an instance of an object
I'm doing windows 8 app dev using the caliburn.micro MVVM framework.
I'm having issues with design time data. I've looked high and low through various blogs and what not to find an answer. No luck so far.
Here is a section from my view where I say…

Lochana Wijesundera
- 61
- 5
0
votes
1 answer
Design time data
Using design-time data for my Windows Phone Apps which works fine for string, int etc. (e.g. here: Person name, Person age) but when I like to do that for "nested object" (e.g. here: Company/Employer) I have no idea how to do this in the…

hfrmobile
- 1,213
- 16
- 16
0
votes
1 answer
Viewing a BitmapImage for Sample Data in Design Mode in Blend 2012
Is there a way to create a BitmapImage as Sample Data to be used in Blend 2012 Metro Store App (on Windows 8)?
I have a ViewModel as follows:
public ItemDesignDataVM()
{
WebThumbnail = new BitmapImage(new Uri(???));
}
public string ItemId { get…

Andy B
- 541
- 2
- 13