Questions tagged [blendability]
11 questions
5
votes
2 answers
What makes visual studio's designer kick in for design time support
I have a c# control library which contains my models, viewmodels and views. I hook everything up as I usually do but I do not get any design time feedback from visual studio's designer (blendability).
When I load my assambly in a WPF project and…

silverfighter
- 6,762
- 10
- 46
- 73
5
votes
1 answer
Blendability with d:DataContext. What am I missing?
I feel as though I still see a lot of guidance and advice stating that a view-first approach is the best way to go to get Blendability in your application. However, with d:DataContext, d:DesignData and d:DesignInstance, isn't the problem of…

nlawalker
- 6,364
- 6
- 29
- 46
5
votes
1 answer
How to display Image with design-time Source in Expression Blend
I have an Image down some controls in a XAML visual tree.
I would like to display a design-time image, so that I can check layout, dimensions, etc.
Something equivalent to this:

heltonbiker
- 26,657
- 28
- 137
- 252
5
votes
1 answer
What is the standard convention for defining nested view:viewmodel mapping in MVVM Light
so in classic MVVM examples ive seen DataTemplate definitions are used to map up View Models to Views, what is the standard way to do this in MVVM Light framework, and where should the mappings be located? Following are examples of what I'm doing…

Firoso
- 6,647
- 10
- 45
- 91
2
votes
1 answer
Using Wpf RelativeSource Binding breaks Blendability
I've got the following scenario... I have a Window that contains an ItemsControl. I specify a ViewModel for the Window's DataContext. I specify a DataTemplate for the ItemControl's ItemTemplate. In the the DataTemplate I use a ComboBox and for the…

Imri
- 21
- 1
2
votes
1 answer
How to achieve "Blendability" when using DataServiceCollection in my ViewModel
I'm looking at using oData endpoints in my Silverlight client. Naturally, I'm doing MVVM and I want the project to be nice and "Blendable" (i.e. I must be able to cleanly use static data instead of the oData endpoints when in design mode.)
Now to…

CodingInsomnia
- 1,843
- 2
- 15
- 19
1
vote
2 answers
Silverlight ViewModelLocator defined in app.xaml needs a reference to the DI container
I have a ViewModelLocator class that I am defining in app.xaml which is used by my views to databind to the correct ViewModel.
DataContext="{Binding HomeViewModel, Source={StaticResource Locator}}"
I am using Prism and Unity and my ViewModelLocator…

MIantosca
- 833
- 1
- 10
- 33
1
vote
0 answers
Losing blendability with mvvm light when trying to connect to sqlite in designmode
I was coding happily ever after a personal project, when I noticed that I lost my blendability with mvvm light framework on my view models.
Trying to figure out why, I started digging into my constructors, adding and removing and cursing in arcane…

Noctis
- 11,507
- 3
- 43
- 82
1
vote
1 answer
WPF Design Time Data Confusion
Why is it that when I create some design time data for my MVVM View, I have to nest the xmlns twice to access the properties of the property?
Example:
…

Cowman
- 678
- 7
- 25
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
How can I use a linq2sql database on wp7 mango, while maintaining blendability?
I'm trying to create a WP7 application using MVVM Light and SQL Server CE as a database. To accomplish this I generated a datacontext using sqlmetal.exe (1).
This works ok if I run the application on my phone. But when trying to display design time…

Tim
- 221
- 3
- 12