gpt4 book ai didi

c# - WPF - 通过事件命令

转载 作者:太空宇宙 更新时间:2023-11-03 15:47:56 25 4
gpt4 key购买 nike

<分区>

WPF - 通过事件命令

我已经通过命令处理了 TextChanged 事件。

<TextBox Text="{Binding ConnectionString, Mode=TwoWay}" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity">
<i:Interaction.Triggers>
<i:EventTrigger EventName="TextChanged">
<i:InvokeCommandAction Command="{Binding Path=SomeCommand, Mode=OneWay}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</TextBox>

我的引用资料:

- Microsoft.Expression.Interactions
- Systsem.Windwos.Interactivity

异常(exception):

A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll

Additional information: Could not load file or assembly 'System.Windows.Interactivity, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com