我有这个定义
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
***
我在那个网格中有这个元素
<Grid Grid.Row="0" Grid.Column="2">
<Image Stretch="None" HorizontalAlignment="Left" Name="Detractor" Width="Auto" Height="Auto" VerticalAlignment="Top">
<Image.Source>
<DrawingImage PresentationOptions:Freeze="True">
<DrawingImage.Drawing>
<DrawingGroup xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<DrawingGroup x:Name="DrawingLayer">
<DrawingGroup.ClipGeometry>
<RectangleGeometry Rect="0,0,108,208" />
</DrawingGroup.ClipGeometry>
<GeometryDrawing Brush="#FFFFFFFE">
<GeometryDrawing.Geometry>
<PathGeometry FillRule="Nonzero" Figures="M0,0L108,0 108,208 0,208 0,0z" />
</GeometryDrawing.Geometry>
</GeometryDrawing>
<GeometryDrawing Brush="#FFF29C44">
<GeometryDrawing.Geometry>
....<Big element definition>....
元素定义大于他分配的正方形
如何将元素调整为正方形?图像是人体