drake2k wrote:
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
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.Sorry to bother with this again but I don't understand your comment. Its contrary to my experience.
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
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