Tim*_*aev 10 c# size wpf wpf-controls
我的窗口中有图像控件.此图像控件的大小设置为"自动".
<Image x:Name="videoImg" Stretch="Fill" Height="Auto" Width="Auto" />
当我尝试访问时,它返回0.如何查看此控件的实际大小?它用窗口调整大小.
Rac*_*hel 19
您可以使用.ActualHeight,并.ActualWidth得到渲染Height/ Width控制的
.ActualHeight
.ActualWidth
Height
Width
归档时间:
14 年,1 月 前
查看次数:
18653 次
最近记录:
8 年 前