Scott Cate: Technology


Writings, thoughts, and observations ...


WPF: To Screen Stack or Load On Demand ??

In WPF which is better, to Screen Stack, or Load on Demand.

By ScreenStack, I mean to load all the screen dynamically onto a stack, and then set the visible property of all to false, except the one you want displayed. Like a stack of pancakes, popping the current screen to the top when you want it displayed.

Or … Don’t load the screens in advance, and then Load the screen you want on demand.

Both work … but I’m looking for pros/cons here.

Maybe a combination of both? If this is the case, what screens would I want to keep on the stack, and what screens would I load on demand? Why?

Thank you for your feedback / opinions.

This work is licensed under a Creative Commons license.
Kick this Trick on DotNetKicks.com

1 comment(s)

  1.  avatar

    I would consider loading the views into an IOC container on application startup then requesting from the container.


RSS Feeds

All Technology Posts

Scott Cate Main Blog Feed


Visual Studio Tricks Only Feed

@ScottCate on Twitter

Twitter @ScottCate