New fact about design time problems

7 views
Skip to first unread message

Gerhard Kreuzer

unread,
Feb 15, 2011, 5:15:21 PM2/15/11
to nro...@googlegroups.com
Hi Rishi,
 
just found out, that this section:
 

<

i:Interaction.Behaviors>

     <n:BridgeViewModelBehavior/>

</i:Interaction.Behaviors>

works fine for <Window x:Class="xxxxxx" ....... /> but fails for <UserControl x:Class="yyyyyyy" ...... />. In the case of designing a UserControl (== some View) I always comment out this section before designing and activate it again after that.

If I forgot the activating step, navigation works, but nothing else, because the view models wern't injected, as expected. So I override some OnXXX method from the NavigationViewModelBase and put a Debug.Print statement inside. Now I can easily find out, which view is broken.

 

Hope you can find out some reason for that behavior one day.

 

Best regards

 

Gerhard

Rishi Oberoi

unread,
Feb 19, 2011, 4:58:55 PM2/19/11
to nro...@googlegroups.com
Thanks Gerhard, I know I need to invest some time to properly enable design-time experience with nRoute - in the meanwhile thanks for the tip.
Rishi
Reply all
Reply to author
Forward
0 new messages