我想同时调整多个形状的大小。这是我的 xaml 代码。它有 2 个名为 g6 和 g10 的画布,但在实际项目中我得到了近 100 个画布。有什么解决办法吗?
<Canvas
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Name="svg2"
Width="612"
Height="800">
<Canvas
x:Name="g4"
RenderTransform="1.3702001,0,0,1.4522231,268.12186,265.31238">
<Canvas x:Name="g6">
<Path
x:Name="path8"
Data="F1 M-153.219,-37.369C-153.219,-37.369 -153.168,-36.483 -153.579,-36.491 -153.99,-36.5 -162.189,-58.998 -172.418,-57.948 -172.419,-57.948 -163.557,-61.389 -153.219,-37.369L-153.219,-37.369z"
Fill="#FFFFFFFF"
Stroke="#FF000000"
StrokeMiterLimit="4"
StrokeThickness="0.172" />
</Canvas>
<Canvas x:Name="g10">
<Path
x:Name="path12"
Data="F1 M-151.46,-38.783C-151.46,-38.783 -151.734,-37.933 -152.117,-38.073 -152.5,-38.212 -152.06,-61.988 -162.059,-64.269 -162.059,-64.269 -152.48,-64.673 -151.46,-38.783z"
Fill="#FFFFFFFF"
Stroke="#FF000000"
StrokeMiterLimit="4"
StrokeThickness="0.172" />
</Canvas>
</Canvas>
</Canvas>