首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我的ActivityDesigner togglebutton到哪里去了?

我的ActivityDesigner togglebutton到哪里去了?
EN

Stack Overflow用户
提问于 2010-08-24 02:45:55
回答 1查看 365关注 0票数 1

它消失了!

我使用的是带有可折叠UI的标准ActivityDesigner示例:

代码语言:javascript
复制
<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>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-09-02 20:58:28

德尔普。

根活动是不可折叠的,因此,如果您将活动放在空白工作流中,该活动将不可折叠。孩子们的活动将是。

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3550688

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档