これが機能するためにどのリソースが不足しているのか分かりません。ここ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:ei = "clr-namespace:Microsoft.Expression.Interactivity.Core; assembly = Microsoft.Expression.Interactions" –
名前空間を追加しましたが、エラーメッセージが違う - ChangePropertyActionが存在しない"Clr-namespace:Microsoft.Expression.Interactivity.C ore; assembly = Microso ft.Expression.Intera ctions" – LetzerWille