1

它消失了!

这是缺少切换按钮的图像,顺便说一句

我正在使用带有可折叠 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>
4

1 回答 1

2

德普。

根 Activity 不可折叠,因此如果您将 Activity 放在空白工作流上,该 Activity 将不可折叠。儿童活动会。

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

于 2010-09-02T12:58:28.107 回答