■ VirtualizingStackPanel 엘리먼트 사용하기

----------------------------------------------------------------------------------------------------

<ListBox

    Width="200"

    Height="100">

    <ListBox.ItemsPanel>

        <ItemsPanelTemplate>

            <VirtualizingStackPanel Orientation="Vertical" />

        </ItemsPanelTemplate>

    </ListBox.ItemsPanel>

    <ListBoxItem Content="one"   />

    <ListBoxItem Content="two"   />

    <ListBoxItem Content="three" />

    <ListBoxItem Content="four" />

    <ListBoxItem Content="five" />

    <ListBoxItem Content="six"   />

    <ListBoxItem Content="seven" />

    <ListBoxItem Content="eight" />

    <ListBoxItem Content="nine" />

    <ListBoxItem Content="ten"   />

</ListBox>

----------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요