简体   繁体   English

silverlight按钮onClick事件

[英]silverlight button onClick event

Might be this question a blunder :(... 可能是这个问题的失误:(...

I have aa button in silverlight application... 我在Silverlight应用程序中有一个按钮...

<Button Height="25" Width="100" Grid.Column="0" Grid.Row="0" Click="Button_Click"/>

I read that silverlight need WCF to interact with server side... So is it like to access my "Button_Click" event I need WCF ? 我读到silverlight需要WCF与服务器端进行交互...所以我需要WCF来访问我的“ Button_Click”事件吗?

No you dont need WCF to access you Button_Click event. 不,您不需要WCF即可访问Button_Click事件。 You can direcly go to Code Behind and use the EventArgs e event handler. 您可以直接转到“隐藏代码”并使用EventArgs e事件处理程序。

The server side is normally database access and that is not needed for events! 服务器端通常是数据库访问权限,事件不需要!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM