阅读背景:

实际显示时,我的控件大小如何为NaN?

来源:互联网 

I have a Grid which contains an Image in one of its columns. The image itself does not have any Width or Height set, but its size is correctly controlled through the ColumnDefinition set. From this I would assume that the image controller actually has a Width and Height set, but when I try to bind another element to its Width and Height it doesn't work. When debugging it turns out that the value of Image.Height and Image.Width are NaN. Why? I have a Grid which contains an Image in one of




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: