开发者

Own event for custom UserControl in XAML!

开发者 https://www.devze.com 2023-01-17 02:40 出处:网络
I want to create an own event (which I\'ll fire via code) for a CustomControl via XAML. This would allow me to add 开发者_运维百科a trigger for an animation which I create in XAML.You can\'t define t

I want to create an own event (which I'll fire via code) for a CustomControl via XAML.

This would allow me to add 开发者_运维百科a trigger for an animation which I create in XAML.


You can't define the events of a control in the xaml, you must do this in code behind, its the same as you cant define members of the control on xaml.

0

精彩评论

暂无评论...
验证码 换一张
取 消