質問

消えた!

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