gpt4 book ai didi

c# - WPF RibbonComboBox 项目垂直列出

转载 作者:太空狗 更新时间:2023-10-29 22:32:29 26 4
gpt4 key购买 nike

我正在处理一些 XAML,其中有一个 RibbonComboBox:

<RibbonComboBox SelectionBoxWidth="150" Grid.Row="0">
<RibbonGallery SelectedItem="{Binding SelectedUtilityRun, Mode=TwoWay}">
<RibbonGalleryCategory ItemsSource="{Binding UtilityRunLabels}" />
</RibbonGallery>
</RibbonComboBox>

当它显示时,它会水平显示项目,而不是像我预期的那样垂直显示: enter image description here

如何设置垂直放置项目的样式?

最佳答案

尝试设置 RibbonGallery.MaxColumnCount到 1:

<RibbonGallery ... MaxColumnCount="1">

关于c# - WPF RibbonComboBox 项目垂直列出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20908240/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com