[WPF] ScrollViewer WPF 2012. 3. 19. 15:08
ScrollView 는 ViewBox와 어찌보면 비슷하다. 하나의 자식 컴포넌트만 올라 올 수 있다.

<ScrollViewer>
        <StackPanel>
        <TextBlock Name="btn1" Width="256" Height="25" VerticalAlignment="Top">1</TextBlock>
        <TextBlock Name="btn2" Width="256" Height="25" VerticalAlignment="Top">2</TextBlock>
        <TextBlock Name="btn3" Width="256" Height="25" VerticalAlignment="Top">3</TextBlock>
        <TextBlock Name="btn4" Width="256" Height="25" VerticalAlignment="Top">4</TextBlock>
        </StackPanel>
    </ScrollViewer>

위 코드를 실행하여 보면 스크롤이 생기면서 뷰 형태를 구성하는 것을 확인 할 수 있다.