3

I am developing a custom control in WPF/C# that involves a scale. The scale shows numeric labels (TextBlock instances) at key ticks along the scale as one would expect.

When doing some manual testing I came across a strange scenario where if I have just the right size of control a particular scale label becomes garbled.

Here is a link to a screenshot:

screen shot of problem

If I re-size the control a single pixel then it all works as expected.

Any idea what is happening? Is it just a WPF bug?

H.B.
  • 166,899
  • 29
  • 327
  • 400
Jeff L.
  • 226
  • 1
  • 3
  • 13

0 Answers0