时间:2010-07-24 16:44:53

标签: wpf scrollviewer textwrapping

1 个答案:

答案 0 :(得分:0)

你去男人:

<Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="Auto" />
     </Grid.ColumnDefinitions>
     <WrapPanel>
         <Button>
             <TextBlock Text="Button 1 - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." 
                        TextWrapping="Wrap" />
         </Button>
     </WrapPanel>
     <Button Content="Button 2" Grid.Column="1" />
</Grid>