语言

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基于水平方向Parallel的活动设计器StackPanel。

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

注解

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

适用于