WorkflowItemsPresenter.ItemsPanelProperty 字段

定义

标识 ItemsPanel 依赖项属性。Identifies the ItemsPanel dependency property.

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 

字段值

DependencyProperty

示例

下面的 XAML 示例显示了 ItemsPanel Parallel 基于水平方向的活动设计器的 StackPanelThe following example in XAML shows the ItemsPanel for the designer of Parallel activities that is based on a horizontally oriented StackPanel.

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

注解

通过提供一个自定义面板模板,您可以自定义和控制所含项的布局。By providing a custom panel template, you can customize and control the layout of the contained items. 默认值 ItemsPanel 基于垂直方向 StackPanelThe default ItemsPanel is based on a vertically oriented StackPanel. 作为说明, ItemsPanel 活动设计器的 Parallel 基于水平方向 StackPanelAs an illustration, the ItemsPanel for the designer of Parallel activities is based on a horizontally oriented StackPanel.

适用于