Share via


WorkflowItemsPresenter.ItemsPanelProperty 字段

定义

标识 ItemsPanel 依赖项属性。

public: static initonly System::Windows::DependencyProperty ^ ItemsPanelProperty;
public static readonly System.Windows.DependencyProperty ItemsPanelProperty;
 staticval mutable ItemsPanelProperty : System.Windows.DependencyProperty
Public Shared ReadOnly ItemsPanelProperty As DependencyProperty 

字段值

示例

XAML 中的以下示例显示了ItemsPanel基于水平方向 StackPanel的活动设计器的 Parallel

<sad:WorkflowItemsPresenter.ItemsPanel>  
  <ItemsPanelTemplate>  
    <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" x:Name="ItemsPanel"/>  
  </ItemsPanelTemplate>  
</sad:WorkflowItemsPresenter.ItemsPanel>  

注解

通过提供一个自定义面板模板,您可以自定义和控制所含项的布局。 默认值 ItemsPanel 基于垂直方向 StackPanel的 。 作为图示, ItemsPanel 活动设计器的 Parallel 基于水平方向 StackPanel的 。

适用于