Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/316.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 水平列表框项目_C#_Windows Phone 8.1 - Fatal编程技术网

C# 水平列表框项目

C# 水平列表框项目,c#,windows-phone-8.1,C#,Windows Phone 8.1,我想创建一个水平列表框项目,就像键盘的建议一样 但它是这样表现的 在我将Height=“30”添加到列表框后,它只显示一个建议,而另一个单词none 已解决 <ListBox x:Name="RecognizedListBox" > <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation

我想创建一个水平列表框项目,就像键盘的建议一样

但它是这样表现的

在我将Height=“30”添加到列表框后,它只显示一个建议,而另一个单词none

已解决

<ListBox x:Name="RecognizedListBox" >
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Vertical">
                        <TextBlock Width="30" Foreground="Black"  Text="{Binding}" />
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <StackPanel Orientation="Horizontal"/>
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
        </ListBox>


尝试为控件指定特定大小,使其不会展开

<ListBox  Height=30 Name="RecognizedListBox"/>

尝试为控件指定特定大小,使其不会展开

<ListBox  Height=30 Name="RecognizedListBox"/>

尝试为控件指定特定大小,使其不会展开

<ListBox  Height=30 Name="RecognizedListBox"/>

尝试为控件指定特定大小,使其不会展开

<ListBox  Height=30 Name="RecognizedListBox"/>

试着这样做:

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

...

尝试以下方法:

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

...

尝试以下方法:

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

...

尝试以下方法:

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

...

我可能会用一种奇怪的方式来完成,它是一组按钮(或可点击的文本框)水平对齐。我以前从未听说过水平列表框。我举了一个列表框的例子,也许它将是另一个工具,我不确定它是否能帮助你。我以前从未为Windows phone编程过:P.I可能会用一种奇怪的方式来编程,它是一堆按钮(或可点击的文本框)水平对齐。我以前从未听说过水平列表框。我举了一个列表框的例子,也许它将是另一个工具,我不确定它是否能帮助你。我以前从未为Windows phone编程过:P.I可能会用一种奇怪的方式来编程,它是一堆按钮(或可点击的文本框)水平对齐。我以前从未听说过水平列表框。我举了一个列表框的例子,也许它将是另一个工具,我不确定它是否能帮助你。我以前从未为Windows phone编程过:P.I可能会用一种奇怪的方式来编程,它是一堆按钮(或可点击的文本框)水平对齐。我以前从未听说过水平列表框。我举了一个列表框的例子,也许它将是另一个工具,我不确定它是否能帮助你。我以前从未为Windows phone编程过:P.thnx,查看更新1,我希望每个项目彼此靠近thnx,查看更新1,我希望每个项目彼此靠近thnx,查看更新1,我希望每个项目彼此靠近thnx,查看更新1,我希望每个项目彼此靠近