Try using tools like "WPF Inspector" or Snopp. This might help to detect problems at runtime.
How to know the details of calculated ActualWidth/ActualHeight
-
26-06-2022 - |
Domanda
We were working on a WPF application project, and the 'about 1px problem' puzzled us a lot.
Finally, we guess maybe the problem about Width
and ActualWidth
.
For instance, we set Border
width
to 160px, and the actual width would be 160.4px.
Any method can help to find the details of the added 0.4px?
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow