Geeks, please accept the hero post of 2021 Microsoft x Intel hacking contest>>>
For example, the following example of using behavior needs to refer to: microsoft.expression.interactions.dll
<Window x:Class="VisualStudioBehavior.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
Name="Window"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Button Content="Hello world">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<ei:CallMethodAction TargetObject="{Binding ElementName=Window}" MethodName="Alert" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
</Grid>
</Window>
What if the prompt can’t find DLL
Through visual studio installer, you can find:
After successful installation, you can find:
Similar Posts:
- Solution to invalid WPF binding elementname mode — X: reference binding
- An error occurred during local report processing: report definition has an invalid target namespace
- Attribute application@label value=(xxx) from AndroidManifest.xml:8:16-37 is also present at [com.github.adrielcafe:AndroidAudioConverter:0.0.8] AndroidManifest.xml:11:18-50 value=(@string/app_name)
- Compatibility issues with microsoft.toolkit.mvvm (MVVM Toolkit)
- event.srcElement And event.target The difference between
- The requested resource [/servlet] in JavaWeb is not available [How to Solve]
- Java web about web.xml 3.1
- How to Solve Soapserver Error: ”looks like we got no XML document“
- QT use of undeclared identifier ‘cout’
- [Solved] IDEA javaweb web.xml File Error: Invalid content was found starting with element