-
1 votesanswersviews
wpf - 测量实际宽度和实际高度
我在XAML中定义了一个Grid,就像 <Grid Name="myGrid" Grid.Row="0" Grid.Column="0"> <!-- row/column definitions are defined in c# file --> </Grid> 这也是xaml文件中其他定... -
1 votesanswersviews
将宽度绑定到ActualHeight - 仅部分工作
我试图将图像的 Width 绑定到它的 ActualHeight (高度由布局确定,我希望它是正方形 - 如果有's a better way of doing this, I' d喜欢听到的话) . 这是我的XAML: <Grid Grid.Row="1" VerticalAlignment="Stretch"> <Grid.Column...