防止调整网格中子元素的大小
Prevent resizing of child element in Grid
当源设置为网络图形的 Image
以编程方式 放置在 Grid
中时,它会自动调整大小以适应整个网格.
如何保持 Image
的原始比例?
要防止更改图像大小,您需要像这样设置 属性 Strech
:
<Image Stretch="None"/>
当源设置为网络图形的 Image
以编程方式 放置在 Grid
中时,它会自动调整大小以适应整个网格.
如何保持 Image
的原始比例?
要防止更改图像大小,您需要像这样设置 属性 Strech
:
<Image Stretch="None"/>