私は MVVM と C# に関しては初心者ですが、次の xaml 解析例外が発生する理由がわかりません: AG_E_PARSER_BAD_TYPE
イベント トリガーを解析しようとすると、例外が発生します。
<applicationspace:AnViewBase
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:c="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WP7">
...そして私のグリッド内:
<Button Name="LoginButton"
Content="Login"
Height="72"
HorizontalAlignment="Left"
Margin="150,229,0,0"
VerticalAlignment="Top"
Width="160">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<c:EventToCommand Command="{Binding LoginCommand}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
i:EventTrigger EventName="Click"行で例外が発生します。
なぜこれが起こっているのかについて誰かが洞察を持っていますか? 私はこれが以前に使用されているのを見たことがあります.
お時間をいただきありがとうございます。