New Posts New Posts RSS Feed: Silverlight Templates
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Silverlight Templates

 Post Reply Post Reply Page  <12
Author
dcsoft View Drop Down
Newbie
Newbie


Joined: 20-Jun-2010
Location: Pleasanton, CA
Posts: 3
Post Options Post Options   Quote dcsoft Quote  Post ReplyReply Direct Link To This Post Topic: Silverlight Templates
    Posted: 20-Jun-2010 at 5:01pm
Until Ward posts his tutorial or the new DevForce templates are ready (which would be most welcome indeed), perhaps this will help. Here are the steps I performed to integrate the UI from the Silverlight Navigation Application template into an application generated by DevForce Silverlight Application.

   1.  Generate a new project based on Silverlight Navigation Application.  Assume it is called default “SilverlightNavigationApplication1”.  We will be copying stuff out of this project into the DevForce one.

   2.  Generate a new project based on DevForce Silverlight Application.  Assume it is called “DevForceSilverlightApplication1”.  We will be replacing the simple UI showing “Hello DevForce” with the multi-page UI from SilverlightNavigationApplication1.

   3.  Assets\Assets.xaml --- Copy Assets\Assets.xaml from SilverlightNavigationApplication1 to DevForceSilverlightApplication1.  Create Assets folder in Solution, Add Assets.xaml to it, and set properties to be the same as reference project (Set Build action to Resource).

   4.  Views\* --- Copy all 6 .xaml and .cs files in the Views\ subfolder (i.e. Views\*) from SilverlightNavigationApplication1 to DevForceSilverlightApplication1.  Create Views folder in Solution, Add all files from Views\ to it.  (All properties are already correctly set, so there is no need to change.)

   5.  App.xaml – Open SilverlightNavigationApplication1’s App.xaml and copy the contents of the <Application.Resources> tag to the clipboard.  Paste it into the App.xaml in DevForceSilverlightApplication1, overwriting the original tag.

   6.  MainPage.xaml / MainPage.xaml.cs --- Replace MainPage.xaml and MainPage.xaml.cs in DevForceSilverlightApplication1 with the files from SilverlightNavigationApplication.

   7.  Search/Replace namespace in Entire Solution:  replace “SilverlightNavigationApplication1” with “DevForceSilverlightApplication1”.

   8. Add references to System.Windows.Controls and System.Windows.Controls.Navigation


Hope this helps,
David
Back to Top
WardBell View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 31-Mar-2009
Location: Emeryville, CA,
Posts: 338
Post Options Post Options   Quote WardBell Quote  Post ReplyReply Direct Link To This Post Posted: 10-Jun-2010 at 8:47pm

Excellent idea ... and one we've considered. We are working on our own versions of these templates.

Meanwhile, I just happen to have been working on a tutorial for starting with the SL Navigation Application template when creating a DevForce app ... an another tutorial on converting a DevForce app built with our SL Application template to the Navigation Application template. I hope to release those soon.
 
The Business Application template is a bit more complicated because they wove RIA Services' Login code deep into the template. That template is such a mess that I'm not yet sure how best to tackle it.
 
Good point about VB support.
 
Your Enlish is terrific :-)
 
Thanks for the feedback and stay tuned.
 
p.s.: Templates aside, we'd like to know what factors are important in your comparison. I encourage you to send your thoughts to AskWard at IdeaBlade dot Com
 
Back to Top
voulgeor View Drop Down
Newbie
Newbie
Avatar

Joined: 06-Jun-2010
Location: Greece
Posts: 8
Post Options Post Options   Quote voulgeor Quote  Post ReplyReply Direct Link To This Post Posted: 06-Jun-2010 at 12:11pm
Hi guys i am testing your great product against the RIA services so i can make a decision. I think that it would be a great add-on to your product and good start for new users that are used to RIA services if you could add the same templates as the RIA services have. i am talking about Silverlight Business Application and Silverlight Navigation Application or even more combining template with view model setups.
Also it would be a great help to vb programmers if you dont forget them by including vb examples. Thank you keep up the good work.

sorry for my bad English.


Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down