What is the difference between Width and ActualWidth in WPF?

前端 未结 7 785
不知归路
不知归路 2020-11-27 05:23

I am currently working with Panels in WPF, and I noticed that as regards the Width and Height properties, there are also two other pro

7条回答
  •  半阙折子戏
    2020-11-27 06:13

    It's exactly that, the render width != layout width. One is intended to be used for layout the other one is intended for render. It like with WinForms, there was a Size and a ClientSize property, the differ slightly and you should use the Atual/Client size of rendering and the Width/Height for layout.

提交回复
热议问题