2010-08-23 53 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。

根活动不可折叠,所以如果您将一个活动放在空白工作流上,该活动将不可折叠。儿童活动将是。

猜测通过将您的活动放在空工作流中来测试您的折叠模板不是最好的主意。