【wpf】listbox竖直排列如何转成横向排列

 

<ListBox>
    <ListBox.ItemsPanel>
        <ItemsPanelTemplate>
            <StackPanel Orientation="Horizontal"/>
        </ItemsPanelTemplate>
    </ListBox.ItemsPanel>
</ListBox>

 

posted @ 2024-03-27 17:41  春天花会开,  阅读(129)  评论(0)    收藏  举报