Questions tagged [design-time-data]
41 questions
1
vote
1 answer
Design Time Data with MVVM light
I am using Visual Studio to create a notebook app for WP7 with the MVVM light toolkit. I'd like design-time data, but it doesn't show. It works at runtime, the implementation is exactly the same (DesignNoteDataService = NoteDataService) at the…

SBoss
- 8,845
- 7
- 28
- 44
1
vote
3 answers
Does Caliburn.Micro support design time data?
Does Caliburn.Micro support design time data?
I tried out with following steps;
I created a simple hello world program. Where ShellViewModel is derived off of IShell. By running the sample program it does show hello word at run time. Since the view…

Nair
- 7,438
- 10
- 41
- 69
1
vote
1 answer
Set d:DataContext to an internal class of another assembly
Consider the following scenario:
WPF view:
d:DataContext="{d:DesignInstance vm:DesignViewModel, IsDesignTimeCreatable=True}"
ViewModel is located in a separate c# project:
internal class DesignViewModel : ViewModel
{ /* create demo data in ctor */…

sa.he
- 1,391
- 12
- 25
1
vote
1 answer
Loading design time data from file into Blend in code in WinRT
If you create an out-of-the-box WinRT phone app in Visual Studio, e.g. a Hub App (Windows 8.1 Universal), the resulting XAML loads design time data in XAML like this:

dumbledad
- 16,305
- 23
- 120
- 273
1
vote
0 answers
Applying DataTemplates to Sample/Design Data in Expression Blend
I have a ListView that is supposed to display objects of class Sensor, for which I created a simple (for now) DataTemplate.
In order to further design this DataTemplate in Expression Blend, I created Sample Data from Class as shown in the docs…

heltonbiker
- 26,657
- 28
- 137
- 252
1
vote
0 answers
Force ExpanderView to expand while in the XAML Designer
Is there a way to force the XAML designer to expand and show the contents of an ExpanderView?
I have tried setting the IsExpanded property to true as well as binding it to one of my Design ViewModels that sets it as true and neither method worked.

chustar
- 12,225
- 24
- 81
- 119
1
vote
1 answer
Caliburn Micro design time using naming conventions
Using Caliburn Micro 1.5.1 I'm trying to get design time bindings to work in a WP8 app. I have created a design time ViewModel which I specify explicitly in the PhoneApplicationPage:

Josh
- 4,009
- 2
- 31
- 46
1
vote
1 answer
No design time data with entity framework 5 in Visual Studio
Hi I build a simple test solution in VS 2012 with two projects.
One is a Class library and the other a WPF application.
Both use .NET 4.5.
In the class library I add an EF element (DataFirst) which maps a simple table.
Next I reference this project…

ManniAT
- 1,989
- 2
- 19
- 25
1
vote
1 answer
Loading design-time WPF resources in Visual Studio through .csproj
In Expression Blend 4, it's possible to load design-time resources by editing your project file. Here's an example of what that would look like:

frankacy
- 13
- 1
- 3
0
votes
1 answer
Referencing assemblies only at design time in WPF (Visual Studio and Blend)
Suppose there is a solution with following projects and their respective references:
ModelBase
MyModel
ModelBase
ViewModelBase
MyViewModel
ViewModelBase
MyModel
GenericModelEditor
ModelBase
ViewModelBase
WPF
MyModel contains both models and…

Marcin Wisnicki
- 4,511
- 4
- 35
- 57
0
votes
2 answers
can anyone think of why using this particular class in a design time data source will break all design time bindings?
I generated this class using SQLMetal.exe. It is very bindable at runtime, but if I use this class at design time, all of my design time blend bindings are busted.
I am using the MVVM-Light framework and I am building an app for WP7.
If I extract…

CedricB
- 1,157
- 9
- 23
0
votes
1 answer
Design time access to Custom Attributes
Is there a way to access custom attributes (TCustomAttribute) ad design time. I have a custom form that has a custom module (from ICustomModule) registered. I would like to be able to access any custom attributes that have been defined for the form…

user984361
- 1
- 1
0
votes
2 answers
WPF XAML DesignTime Data - set property value on related model
Say we have a Person model:
public class Person
{
public long Id { get; set; }
public string Name { get; set; }
public City City { get; set; }
}
And we have a City model:
public class City
{
public long Id { get; set; }
public…

ThomasE
- 369
- 1
- 5
- 19
0
votes
0 answers
WPF Design Time Data Not Binding To Image
Just like the header says.
The thing is, the image is binding correctly at runtime, and all other properties are binding correctly at design time. Moreover, I've successfully bound images at design-time in other User Controls\Pages.
I've already…

Elyasaf755
- 2,239
- 18
- 24
0
votes
1 answer
VS2010 Design-Time error when using WCF to load design-time data
gentlemens.
I have following definition in the Silverlight project, MainPage.xaml:

Override
- 1