我想不通哪个资源我缺少这个工作,我得到消息ei命名空间没有找到。isEnabled绑定到其他按钮点击
<Button
Name="btnEnter"
Click="btnEnter_Click"
Style="{StaticResource SignButtons}"
FontFamily="Comic"
FontSize="24"
FontWeight="DemiBold"
Grid.Column="3"
Height="51.562"
Width="75"
Margin="30,23.624,0,0"
Grid.Row="3"
Template="{DynamicResource EnterButton}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<ei:ChangePropertyAction
TargetObject="{Binding ElementName=btnMultiplication}"
PropertyName="IsEnabled" Value="False"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
这里是
<Window x:Class="Button_Template.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Button_Template"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:i="http://schemas.microsoft.com/netfx/2009/xaml/presentation"
mc:Ignorable="d"
向我们展示来自XAML根元素的XML名称空间,应该很容易发现。 –
尝试添加此xmlns'xmlns:ei =“clr-namespace:Microsoft.Expression.Interactivity.Core; assembly = Microsoft.Expression.Interactions”' –
我添加了命名空间,现在错误消息不同 - ChangePropertyAction不存在在“clr-namespace:Microsoft.Expression.Interactivity.C ore; assembly = Microso ft.Expression.Interations” – LetzerWille