它消失了!

This is an image of a missing toggle button, btw

我正在使用带折叠式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>
有帮助吗?

解决方案

derp。

根活动不是可折叠的,因此,如果您在空白工作流程上放置活动,则活动将无法折叠。儿童活动将是。

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top