开发者

expander overflows

开发者 https://www.devze.com 2023-01-20 04:06 出处:网络
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,

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

精彩评论

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