<ImageBrush ImageSource="Images/ZengZhiYeWu/untitled.png" Stretch="None" AlignmentY="Bottom" AlignmentX="Right" />当使用AlignmentY和AlignmentX调整背景图的位置时,必须设置Stretch属性,否则不生效
本文介绍如何使用AlignmentY和AlignmentX属性在WPF中精确调整背景图片的位置,并强调了为使调整生效必须设置Stretch属性。
<ImageBrush ImageSource="Images/ZengZhiYeWu/untitled.png" Stretch="None" AlignmentY="Bottom" AlignmentX="Right" />
被折叠的 条评论
为什么被折叠?