views:

11

answers:

0

Hi all,

I try to create a Triggers on my Workflow custom activities but I still do not manage to do it. I follow example from a book, if I use their sample code, it works perfectly. However if I code it myself, VS2010 always crashes.

Here is the XAML code:

<Style x:Key="RetryStyle" TargetType="{x:Type ContentPresenter}">
            <Style.Triggers>        
                <DataTrigger Binding="{Binding Path=ShowExpanded}" Value="true">
                    <Setter Property="ContentTemplate" Value="{DynamicResource ExpandedRetryTemplate}"/>
                </DataTrigger>
            </Style.Triggers>
            <Setter Property="ContentTemplate" Value="{DynamicResource CollapsedActivityViewTemplate}" />
        </Style>

What I did is I tried to add <Style.Triggers> portion but once I finished adding it, when I regenerate the assembly and use the custom activity in the main Workflow, VS2010 will crash.

So in this case, how to solve the crashing issue? Do I miss some steps?