Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/300.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# Wpf groupstyle包裹面板_C#_Wpf - Fatal编程技术网

C# Wpf groupstyle包裹面板

C# Wpf groupstyle包裹面板,c#,wpf,C#,Wpf,如何将组样式与ItemsPanelTemplate一起使用, 但我希望gorup是stack horizntal和wrappanel,如下所示: ************* *a:1 2 3 b:1* *2 3 c:1 2 3* *d:1 2 3 e:1* *2 3 * ************* 我试过这个: <GroupStyle.Panel> <ItemsPanelTemplate> <WrapPanel Orientation="H

如何将组样式与ItemsPanelTemplate一起使用, 但我希望gorup是stack horizntal和wrappanel,如下所示:

*************
*a:1 2 3 b:1*
*2 3 c:1 2 3*
*d:1 2 3 e:1*
*2 3 *
*************
我试过这个:

<GroupStyle.Panel>
    <ItemsPanelTemplate>
        <WrapPanel Orientation="Horizontal" />
    </ItemsPanelTemplate>
</GroupStyle.Panel>
我甚至尝试了相反的方法,将组样式面板设置为堆栈,将列表视图设置为包裹面板。

尝试使用宽度:

 <WrapPanel Width=200px />

(以200px值为例)

**************
*a:1 2 3 *
*b:1 2 3 *
*c:1 2 3 *
*d:1 2 3 *
*e:1 2 3 *
**************
 <WrapPanel Width=200px />