定义了一个行为,怎么在一个类中为一个元素引用此行为?
wpf吧
全部回复
仅看楼主
level 1
okF1F2F3 楼主
<Image Name="Image1" Width="100" Height="100">
<i:Interaction.Behaviors>
<custome:BehaviorClass></custome:BehaviorClass>
</i:Interaction.Behaviors>
</Image> 这是在XAML中引用的。那怎么在一个类中为一个Image元素引用此行为呢?
2016年06月06日 09点06分 1
level 1
okF1F2F3 楼主
小伙伴们,看到后只个招啊。
2016年06月06日 09点06分 2
1