开发者

expander overflows

c# vs2010

hi all: how can I bring to focus on a window all controls hidden on expander.

expander is collapsed at the bottom of the window, when i click on it to expand it (i have to scroll down,'cause controls are not showing on the window), I would like to bring into focus the first control and be able to see the last control on the window without ma开发者_StackOverflownually scrolling.

any ideas how to accomplish this task on Xaml or code behind.

thanks


<Window>
  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="*" />
      <RowDefinition Height="auto" />
    </Grid.RowDefinitions>
    <ScrollViewer>
      <!-- lol stuff here -->
    </ScrollViewer>
    <Expander Grid.Row="1">
      <TextBlock>Wow! You don't have to scroll to see me!</TextBlock>
    </Expander>
  </Grid>
</Window>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜