它消失了!

我使用的是带有可折叠UI的标准ActivityDesigner示例:
<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>发布于 2010-09-02 20:58:28
德尔普。
根活动是不可折叠的,因此,如果您将活动放在空白工作流中,该活动将不可折叠。孩子们的活动将是。
通过将活动放在一个空工作流中来测试折叠模板不是最好的主意。
https://stackoverflow.com/questions/3550688
复制相似问题