Forcing Arrange in a Custom WPF Canvas
Posted
by
Alex Marshall
on Stack Overflow
See other posts from Stack Overflow
or by Alex Marshall
Published on 2011-01-07T21:48:41Z
Indexed on
2011/01/07
21:54 UTC
Read the original article
Hit count: 258
Hello,
I'm working on a project that involves creating a custom graphical editor. The graphical editor has multiple tabs, and I want to create a preview function that will show a popup with Bitmap previews of the content of each of the tabs. However, the problem I'm running into is that the content for each of the tabs must be arranged before a proper preview can be generated for it. This means going into each of the tabs to ensure that they're rendered and arranged. Then, and only then, do the previews get properly generated, otherwise the previews have a size of 0x0. Does anybody know how to force an arrange of a content control so that I can get a properly sized preview generated ?
© Stack Overflow or respective owner