New Posts New Posts RSS Feed: [SOLVED] DotNetTabWorkspace instead of DeckWorkspace
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

[SOLVED] DotNetTabWorkspace instead of DeckWorkspace

 Post Reply Post Reply
Author
vecs View Drop Down
Newbie
Newbie


Joined: 05-Dec-2007
Location: Russian Federation
Posts: 22
Post Options Post Options   Quote vecs Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] DotNetTabWorkspace instead of DeckWorkspace
    Posted: 19-Dec-2007 at 12:23am
Please, suggest a way to build shell with DotNetTabWorkspace instead of DeckWorkspace. I mean workspace treated as "ShellContentWorkspace".


Edited by vecs - 20-Dec-2007 at 3:37am
Back to Top
vecs View Drop Down
Newbie
Newbie


Joined: 05-Dec-2007
Location: Russian Federation
Posts: 22
Post Options Post Options   Quote vecs Quote  Post ReplyReply Direct Link To This Post Posted: 20-Dec-2007 at 3:36am
Solved.
1. Copy DotNetShellLayoutView.cs from IdeaBlade.Cab.DotNet project to your Foundation project (\Views\Layout folder).
2. Rename file to TabbedDotNetShellLayoutView.cs and rename (refactor) its class to TabbedDotNetShellLayoutView.
3. Open TabbedDotNetShellLayoutView in designer and delete DeckWorkspace. Then Put DotNetTabWorkspace in place of deleted DeckWorkspace and set its name as mShellContentWorkspace.
4. Open your FoundationModule and modify this method:

private static IViewFactoryService GetViewFactoryService(ServiceCollection pServices) {
  IViewFactoryService viewFactory = pServices.Get<IViewFactoryService>();
  //here was the original IdeaBlade CAB commented template for this:
  viewFactory.UnregisterViewType(ViewNames.ShellLayout);
  viewFactory.RegisterViewType<Views.Layout.TabbedDotNetShellLayoutView>(ViewNames.ShellLayout);
       
  return viewFactory;
}


That is all.




Back to Top
Bill Jensen View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 31-Jul-2007
Location: United States
Posts: 229
Post Options Post Options   Quote Bill Jensen Quote  Post ReplyReply Direct Link To This Post Posted: 20-Dec-2007 at 2:02pm

Good solution.

You've basically reproduced our solution.  If you look in
 
Source->Infrastructure->(yourapp).Foundation\Views\Layout
 
and select Show All Files (in the Solution Explorer), you'll see there is a TabbedShellLayoutView that is present, but not included in the project. 
Just include it in the project and register it in ViewFactoryService as you did your own view.
 
It's basically the same as your solution.  Note that it doesn't provide for linkage back to the nav bar list when a tab is selected.
 
Sorry I didn't get this to you sooner.
 
Bill J.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down