WPF - Text doesn't move with parent control past ~11000px on RenderTargetBitmap Output? RRS feed

  • Question

  • Hi,

    I have an odd issue, we have a big image (about 13000 pixels wide). We display that in a canvas, and put some ContentControls on top of it. Each ContentControl has a Rectangle to act as a background and a ViewBox which has a TextBlock as a child.

    The canvas is then Measured and Arranged and rendered to a RenderTargetBitmap.

    The issue is that once those ContentControls move beyond approximately 11000px on the image, you see the text inside the ContentControl shift to the left rather than being centered, until it leaves the ContentControl completely and thus isn't visible anymore. This only happens on the RenderTargetBitmap Output though. I cannot find any documentation on why that would be.

    Using VisualBrush inbetween seems to solve this issue, but the resulting image has a very low quality.

    • Moved by CoolDadTx Monday, July 6, 2020 1:28 PM WPF related
    Monday, July 6, 2020 8:08 AM

All replies

  • Please post questions related to WPF in the Microsoft Q&A forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Monday, July 6, 2020 1:28 PM
  • Okay, sorry. I'm somewhat new to using MSDN aside just finding post by Googling :)
    Tuesday, July 7, 2020 8:44 AM