2010-08-23 52 views
1

它消失了!我的ActivityDesigner togglebutton去哪了?

This is an image of a missing toggle button, btw

我使用的是標準ActivityDesigner W /可摺疊UI例如:

<sap:ActivityDesigner 
    x:Class="WHATTHEEFF.WhaHappenToMe" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:sap="clr- namespace:Blah blah standard stuff here" 
    Collapsible="True"> 
    <sap:ActivityDesigner.Resources> 
     <DataTemplate 
      x:Key="DTC"> 
      <TextBlock 
       Text="Collapsed" /> 
     </DataTemplate> 
     <DataTemplate 
      x:Key="DTE"> 
      <TextBlock 
       Text="Expanded" /> 
     </DataTemplate> 
     <Style 
      x:Key="SC" 
      TargetType="ContentPresenter"> 
      <Setter 
       Property="ContentTemplate" 
       Value="{DynamicResource DTC}" /> 
      <Style.Triggers> 
       <DataTrigger 
        Binding="{Binding Path=ShowExpanded}" 
        Value="true"> 
        <Setter 
         Property="ContentTemplate" 
         Value="{DynamicResource DTE}" /> 
       </DataTrigger> 
      </Style.Triggers> 
     </Style> 
    </sap:ActivityDesigner.Resources> 
    <ContentPresenter 
     Content="{Binding}" 
     Style="{DynamicResource SC}" /> 
</sap:ActivityDesigner> 
+0

就我個人而言,我喜歡將觸發器反轉爲Value =「false」以在設計時看到擴展狀態 – 2011-12-02 01:33:26

回答

2

DERP。

根活動不可摺疊,所以如果您將一個活動放在空白工作流上,該活動將不可摺疊。兒童活動將是。

猜測通過將您的活動放在空工作流中來測試您的摺疊模板不是最好的主意。