gevjen
gevjen

Reputation: 675

Silverlight InitializeComponent

Are silverlight pages initialized every time they are called? InitializeComponent(); Once they are called is this stored in memory?

If they are Initiallzed everytime they are called is there a way to check to see if it has already been rendered so as to bypass the rendering of the page?

Upvotes: 2

Views: 1083

Answers (1)

Bryan Watts
Bryan Watts

Reputation: 45445

A page is an object like any other - if you create one, then navigate to a different page, the original is no longer referenced and becomes eligible for garbage collection. If you visit the page again, you get an all-new instance.

You asked this question in terms of a preconceived solution (avoid page rendering). What is the underlying issue that led you to consider this approach?

Upvotes: 1

Related Questions