You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/developer/dotnet/framework/general/text-rendered-custom-textblock-defects-remaining-image.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,27 @@
1
1
---
2
-
title: Text Rendering Issue when a TextBlock is the Child of a Viewbox
3
-
description: This article helps you troubleshoot a TextBlock displaying artifacts of old text when the TextBlock is the child of a Viewbox.
2
+
title: Text Rendering Issue if a TextBlock is the Child of a Viewbox
3
+
description: This article helps you troubleshoot a TextBlock that displays artifacts of old text if the TextBlock is the child of a Viewbox.
4
4
ms.date: 07/08/2025
5
5
ms.custom: sap:Class Library Namespaces
6
6
ms.reviewer: mihayash, davean, v-jayaramanp
7
7
ms.topic: troubleshooting-problem-resolution
8
8
9
-
#customer intent: As a developer, I want to fix old text persisting in a TextBlock so that my application renders the updated text correctly.
9
+
#customer intent: As a developer, I want to fix old text that persists in a TextBlock so that my application renders the updated text correctly.
10
10
---
11
11
12
-
# Old text persists when a TextBlock is the child of a Viewbox
12
+
# Old text persists if a TextBlock is the child of a Viewbox
13
13
14
14
_Applies to:_ .NET Framework 4.0 or later
15
15
16
-
This article discusses a text rendering issue that can occur when a TextBlock is the child of a [Viewbox](/dotnet/desktop/wpf/controls/viewbox?view=netframeworkdesktop-4.8&preserve-view=true) and the TextBlock's content is modified.
16
+
This article discusses a text rendering issue that can occur if a TextBlock is the child of a [Viewbox](/dotnet/desktop/wpf/controls/viewbox?view=netframeworkdesktop-4.8&preserve-view=true) and the TextBlock's content is modified.
17
17
18
18
## Symptoms
19
19
20
20
When you update the content of a TextBlock (including derived classes) that's inside a Viewbox, remnants of the previous text remain visible on the screen.
21
21
22
22
## Cause
23
23
24
-
The transform process the Viewbox applies to the [TextBlock](/dotnet/api/system.windows.controls.textblock?view=windowsdesktop-8.0&preserve-view=true) can cause rounding errors when the Viewbox calculates the _dirty rectangle_ area after the TextBlock's content changes. Portions of the previous text might be left on the screen if the _dirty rectangle_ isn't large enough to completely erase the previous text.
24
+
The transform process that the Viewbox applies to the [TextBlock](/dotnet/api/system.windows.controls.textblock?view=windowsdesktop-8.0&preserve-view=true) can cause rounding errors when the Viewbox calculates the _dirty rectangle_ area after the TextBlock's content changes. Portions of the previous text might be left on the screen if the _dirty rectangle_ isn't large enough to completely erase the previous text.
0 commit comments