Quantcast
Channel: AvalonDock
Viewing all articles
Browse latest Browse all 2690

New Post: [version 2.0] AvalonDock recreates the view everytime a Pane is loaded

$
0
0
drake2k wrote:
It ended up being implemented completely differently, in a much more simple and efficient way. Its built in and you do not need to set a property to turn it on.

If you use a version after changeset 97240 (Nov 13, 2012) you dont have to do anything special.

Heres a link to the commit: https://avalondock.codeplex.com/SourceControl/changeset/9724
Sorry to bother with this again but I don't understand your comment. Its contrary to my experience.
I use Build 102592 of AvalonDock in my project http://edi.codeplex.com and it incorporates a text editor based on AvalonEdit.

You can see that a text control is unloaded/loaded each time a user changes a document, for example,
with Cntrl+Tab key or by selecting another active document with the mouse.

(put a break point in the OnLoaded/OnUnloaded methods in this file)
edi\ICSharpCode.AvalonEdit\Edi\EdiTextEditor.xaml.cs

So, the control is not cached by default (since it is unloaded as indicated by the event). I would also be surprised if
this rather inefficient memory 'strategy' would apply to everyone who wants to use AvalonDock for their application.
I also want to be able to review a few hundred text documents in one session...etc So, I think there is something one
has to implement to tell AvalonDock 'to turn on caching' but what that is - I am finding rather difficult to get at :-(

Please let me know if you have any hints on this (like a working sample project with source code or such), thanks

Viewing all articles
Browse latest Browse all 2690

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>