Good news

18 views
Skip to first unread message

Gerhard Kreuzer

unread,
Feb 15, 2011, 6:01:15 PM2/15/11
to nro...@googlegroups.com
Hi Rishi,
 
I think I found something out again:
 
I start by some sample (you know, documentation ...) and just try to make my own out of some of your parts. So I traditionally used this line:
 

xmlns

:nBehaviors="clr-namespace:nRoute.Behaviors;assembly=nRoute.Framework"

Than I found out, that in my MainWindow.xaml, the line looks comletely different, but does the same:

xmlns

:nBehaviors=http://nRoute/schemas/2010/xaml

You know, with 'Window' everything is ok, but 'UserControl' make the problems. Maybe this is the point.

I start changing the line in all my UserControls == Views, and voi la (or however its spelled), my views working now in design mode, and no need to comment out some xaml-sections.

Hope you will find some time and tell us, whats behind that.

With best regards

 

Gerhard

Rishi Oberoi

unread,
Feb 19, 2011, 4:55:52 PM2/19/11
to nro...@googlegroups.com
Interesting, so you are saying when you use the long-form of xml-namespaces you get design-time use in Blend? Also, have you tried to use the long form xmlns in app.xaml?
<n:Application x:Class="CIC.Client.WavConverter.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:nSiteMaps="clr-namespace:nRoute.SiteMaps;assembly=nRoute.Framework"
             xmlns:n="clr-namespace:nRoute.ApplicationServices;assembly=nRoute.Framework"
             StartupUri="MainWindow.xaml">

    <n:Application.ApplicationLifetimeObjects>
        <n:nRouteApplicationService/>
    </n:Application.ApplicationLifetimeObjects>
    
    <Application.Resources>         
    </Application.Resources>
    
</n:Application>
Rishi

Gerhard Kreuzer

unread,
Feb 19, 2011, 5:02:40 PM2/19/11
to nro...@googlegroups.com
Hi Rishi,
 
I never used Blend, so I can't tell anything about that, sorry.
But in VS2010, VB and C# (your samples SimpleMVVM), this helps to stop the designer errors (VS 2010!), totally. So I am able to design UserControls & Windows without problems.
 
I currently fight with async programming and getting feedback (progress info) from that parts of code.
 
I currently fight with navigation, which is done programatically, so I currently stuck again.
 
With best regards
 
Gerhard


Von: nro...@googlegroups.com [mailto:nro...@googlegroups.com] Im Auftrag von Rishi Oberoi
Gesendet: Samstag, 19. Februar 2011 22:56
An: nro...@googlegroups.com
Betreff: [nRoute] Re: Good news

Rishi Oberoi

unread,
Feb 19, 2011, 5:08:35 PM2/19/11
to nro...@googlegroups.com
If you have not used blend, then you should - you can great design-time experience in it. And it's much easier to use than VS2010, as far as the design surface is concerned. Secondly, if you've chosen to go the RX path then try http://rxwiki.wikidot.com/101samples and in case you are using TPL then try http://www.microsoft.com/downloads/en/details.aspx?FamilyID=86b3d32b-ad26-4bb8-a3ae-c1637026c3ee

Cheers,
Rishi

Gerhard Kreuzer

unread,
Feb 19, 2011, 5:21:45 PM2/19/11
to nro...@googlegroups.com
Hi Rishi,
 
I want to came up with a proof of concept, so it doesn't matter how the views looking. My daughter will do the design part with Blend. As far as I know, this was the intention behind all that stuff, to have people making the skin and developers making the logic.
 
I know the RX samples, but this samples wern't really good. What's TPL? Ok, will find out.
 
Just try to use OnLoaded, but wasn't called and I get some design errors again ....
 
With best regards
 
Gerhard


Von: nro...@googlegroups.com [mailto:nro...@googlegroups.com] Im Auftrag von Rishi Oberoi
Gesendet: Samstag, 19. Februar 2011 23:09
An: nro...@googlegroups.com
Betreff: Re: AW: [nRoute] Re: Good news

Gerhard Kreuzer

unread,
Feb 19, 2011, 5:38:28 PM2/19/11
to nro...@googlegroups.com
Hi Rishi,
 
ok, I try to use the OnLoad, but the code wasn't called. Its late and I have to drive home now. I will try out tomorrow, maybe I find out something.
 
Scenario:
 
Views: MainWindow, ShellView, LoginView
ViewModels: ShellVM
 
Startup is the MainWindow, so the ShellVM should be created, and the OnLoaded of ShellVM should be called, but isn't, only the constructor works. I will drill down tomorrow, hope I can get aut some useful information.
 
I disable all my code, just use Debug.Print(..) to don't disturb the framework.
 
Thanks for helping
 
Gerhard


Von: nro...@googlegroups.com [mailto:nro...@googlegroups.com] Im Auftrag von Rishi Oberoi
Gesendet: Samstag, 19. Februar 2011 23:09
An: nro...@googlegroups.com
Betreff: Re: AW: [nRoute] Re: Good news

Adrian Hara

unread,
Feb 20, 2011, 3:26:14 AM2/20/11
to nro...@googlegroups.com

You can also read this series of tutorials about rx: http://leecampbell.blogspot.com/2010/08/reactive-extensions-for-net.html

 

Freundliche Grüsse / Best regards

Adrian Hara
Cloud Developer
LinkedIn 


coresystems ag
Villa im Park | Dorfstrasse 69
5210 Windisch | Switzerland


Phone +41 56 500 22 22
Fax +41 56 444 20 50
Infoline +41 848 088 088
www.coresystems.ch
www.coresuite.com
follow us on
twitter

Visit us at CeBIT:
SAP Partner Booth: Hall 5, Booth A18
Cloud Computing: Hall 4, Booth A58
OS X Business Park: Hall 2, Booth A20
Microsoft Booth: Hall 4, Booth P47

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and / or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

Gerhard Kreuzer

unread,
Feb 20, 2011, 12:08:59 PM2/20/11
to nro...@googlegroups.com
Hi Adrian,
 
thanks for that link, I mastered this issue now.
 
My app cames up with a splash screen. This view contains a listbox and the application composition (MEF ...) was executed on a different thread, but report progress by adding items to this listbox, by updating a List(of String) to which the listbox was bounded (on the UI thread).
 
After that, the code for handling the completition task starts, unfortunately, the NavigationServive.Navigate(..) statement herein fails, so the next step (Login view) doesnt came up.
 
So, thats my next problem, I start to drill down ...
 
With best regards
 
Gerhard
 
By the way, I still have this code in the constructor of my VM, because OnLoad wasn't fired my the nRoute framework.


Von: nro...@googlegroups.com [mailto:nro...@googlegroups.com] Im Auftrag von Adrian Hara
Gesendet: Sonntag, 20. Februar 2011 09:26
An: nro...@googlegroups.com
Betreff: RE: AW: [nRoute] Re: Good news

Reply all
Reply to author
Forward
0 new messages