add parameter to MVVM behaviors - DesignTimeViewModelType

Jan 29, 2012 at 8:20 AM

I propose  adding a following parameter to MVVM behaviors - DesignTimeViewModelType,
for example

<i:Interaction.Behaviors>
  <catel:UserControlBehavior
                                               ViewModelType="viewmodels:DemoWindowViewModel"
                                               DesignTimeViewModelType="viewmodels:DesignTimeDemoWindowViewModel"/>
</i:Interaction.Behaviors> 

Jan 29, 2012 at 5:56 PM

We can easily implement this, but is there a reason why this is better than the default blend design time support:

http://catel.catenalogic.com/index.html?designers.htm

If you have good reasons, we will implement this.

Jan 30, 2012 at 4:55 AM

d:DataContext not work in blend for silverlight 5

https://social.expression.microsoft.com/Forums/en/blend/thread/b91286c2-c97f-4ca1-84c8-99fa144e3b8e

Jan 30, 2012 at 5:22 AM

Fair point, we will implement it. I have created a task:

http://catel.codeplex.com/workitem/7061

It will be available in Catel 3.0. If you like to try out nightly builds, we will have it implemented this week.