1
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
 <Button Content="Status">
        <i:Interaction.Triggers>
            <i:EventTrigger EventName="Click">
                <ei:CallMethodAction MethodName="ResetStatus" TargetObject="{StaticResource Domain.Adapters.IIS}"/>
            </i:EventTrigger>
        </i:Interaction.Triggers>
    </Button>

启动时抛出异常。可以CallMethodAction调用静态方法吗?

4

0 回答 0