■ ItemsPanelTemplate 엘리먼트 사용하기

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

<ListBox

    Width="200"

    Height="200">

    <ListBox.ItemsPanel>

        <ItemsPanelTemplate>

            <VirtualizingStackPanel Orientation="Horizontal" />

        </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

댓글을 달아 주세요