提示1:
使用 RowDefinition.MinHeight/MaxHeight, ColumnDefinition.MinWidth/MaxWidth;使用时应尽可能靠近 virtual tree 的根部。它们都是 Attached Property,所以在使用 Grid 时才有用;
<Grid>
<StackPanel MaxWidth="200">
<Image Source="images/iphone.jpg"/>
</StackPanel>
</Grid>
zip'swhile(true) { Write it down; Think about it; Refine it; Sleep(); } |