How to refer MaxWidth=“??” of TextBlock to Owner ActualWidth?
问题 How to refer MaxWidth="??" of TextBlock to stpMessage ActualWidth ? <StackPanel Name="stpMessage" Orientation="Horizontal" Margin="0,5,0,0"> <Grid > <Grid.ColumnDefinitions> <ColumnDefinition Width="2*" /> <ColumnDefinition Width="2*" /> </Grid.ColumnDefinitions> <TextBlock Margin="0,0,0,0" Foreground="Blue" TextWrapping="Wrap">@ToUserName</TextBlock> <StackPanel Grid.Column="1"> <TextBlock Margin="5,0,0,0" Text="{Binding Path=Text}" MinHeight="20" MinWidth="200" HorizontalAlignment="Stretch"