This is a request to implement an Unloading event in LayoutManager. The issue that this is intended to resolve is in providing a best, last chance place to do a SaveLayout. This is better than using LayoutUpdate event which is too noisy. It's also better than hooking a MainWindow event in that MainWindow and LayoutManager are not so closely related -- better to perform LayoutManager operations within LayoutManager events.

asked 04 Jun '10, 07:00

BSalita's gravatar image

BSalita
276131417
accept rate: 22%

edited 13 Jun '10, 12:47

Scott%20Whitlock's gravatar image

Scott Whitlock ♦♦
696262833


Version 2010.06.13 adds an Unloading event to the ILayoutManager interface. It actually gets called when the main window is closing, since AvalonDock didn't provide an unloading event.

link

answered 13 Jun '10, 12:44

Scott%20Whitlock's gravatar image

Scott Whitlock ♦♦
696262833
accept rate: 50%

Unloading event works great, thanks. Since changing, I haven't seen this mysterious, transient RCW race condition error message. I'm now thinking it was caused by calling SaveLayout in LayoutUpdate. It hasn't reappeared since moving SaveLayout into Unloading.

link

answered 17 Jun '10, 10:51

BSalita's gravatar image

BSalita
276131417
accept rate: 22%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×17
×11
×9
×7
×4
×1

Asked: 04 Jun '10, 07:00

Seen: 2,006 times

Last updated: 17 Jun '10, 10:51

powered by OSQA