แก้ไข

แชร์ผ่าน


WorkflowItemsPresenter.ItemsPanelProperty Field

Definition

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 

Field Value

Examples

The 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>  

Remarks

By providing a custom panel template, you can customize and control the layout of the contained items. The default ItemsPanel is based on a vertically oriented StackPanel. As an illustration, the ItemsPanel for the designer of Parallel activities is based on a horizontally oriented StackPanel.

Applies to