In a project there are lots of Page
derived classes and
a MainWindow
that is a NavigationWindow
.
Should there really be Navigate(new PageDerivedClass())
in the code or should the hierarchical Page
tree be built
before?
If I go back and do the same thing again to create a new
PageDerivedClass
, shouldn't the application somehow
handle that case and use the already created page instead
of building a new one?
As far as I can see, the newly created page isn't GarbageCollected
,
since you still can Navigate through the arrows of the NavigationWindow
.
Is it leaking somehow?
How to use it the correct way? The MSDN is not very helpful here.