This is a migrated thread and some comments may be shown as answers.

WPF application and Browser app together

3 Answers 182 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
steve white
Top achievements
Rank 1
steve white asked on 01 Apr 2010, 05:18 PM
Hi I'm just looking for a little direction and to look at what control packages I may need, I'm fairly new to WPF but I have been using vb.net for 6+ years and a little bit of C#.

I'm creating a financial dashboard app and I would like to have the the end user be able to install it as a desktop application or a browser application, I know WPF can do both, with some limitations in browser apps. I'm in the process of finding a controls for my project, currently I really like what I see with telerik RAD controls.

Controls I will most likely use,
Dock, gridview, charts tileview and maybe a treeview and a few additional.

Questions

I'm looking to not have to create and maintain two separate projects and duplicate the controls for both, Ideally I'd like to create a multi-tier project with a Data layer, controls and pages layer, a desktop app layer and a web browser app layer. Is there any additional packages that I would need to do this or would the WPF rad controls be enough? would this be a good idea to combine?

Also should I be looking into silverlight version of the RAD controls for the web instead of the WPF using XBAP?

I'm just looking for some advice or direction on which packages I may want to consider and if my controls layer idea would work with the RAD controls, I just dont want to have to maintain two sets of pages and controls.

Thanks for any advice you may be able to provide,
steve

3 Answers, 1 is accepted

Sort by
0
steve white
Top achievements
Rank 1
answered on 05 Apr 2010, 06:11 PM
Ok, so I managed to get it to work a little bit.

I created a WPF app with a dataset for the data,
created new usecontrol(we'll call it gridcontrol for this example)  and placed a gridview in it and linked up the data in the code behind with VB.net.
created new usecontrol(we'll call it dockcontrol for this example) and placed a raddock in it , then placed the gridcontrol  in a panel in the dockcontrol with other dummy panels to test with.
then I placed the dockcontrol in the grid in the window,

Everything displays ok, but the grid will give me some errors depending on what order I do things. I think it loses reference to the code behind.

an error I get
  • "There is no source code available for current location"
then this
  • "This row has been removed from a table and does not have any data.  BeginEdit() will allow creation of new data in this row."

I get this error sometimes after re docking the panel
and also when, if I have the panel in a tab and change tab and come back to the tab with the grid on it and try to scroll.

I also added a web browser app to the solution, referenced the first app and added a reference in the page to the first app as well.
I then added the dockcontrol to the page and it acts simular to the first app.

So I managed to get a shared set of controls without having to duplicate any controls, its just a few errors.

thanks for any help you may be able to provide.

steve

0
steve white
Top achievements
Rank 1
answered on 06 Apr 2010, 06:05 PM
I believe I got the basics working,
I'll consider this post finished and re ask just the gridview problem in the gridview section under a new post.

steve
0
denis curtis
Top achievements
Rank 1
answered on 22 Apr 2010, 09:20 PM
http://msdn.microsoft.com/en-us/library/aa970060.aspx
http://msdn.microsoft.com/en-us/library/aa480223.aspx

if you still didn't get the answer onsnadalone and browser WPF application please read these two topics. As for telerik contols, if technical stuff still didn't answer on your question, then I think you'll get the problems with rad controls in the browser.
Tags
General Discussions
Asked by
steve white
Top achievements
Rank 1
Answers by
steve white
Top achievements
Rank 1
denis curtis
Top achievements
Rank 1
Share this question
or