比如我做一个翻页的用户控件
pager:usercontrol
{
public int totalPage{}
public int currentPage{}
...}
将之用在页面上,如何使用这个控件的事件呢?? 比如我传递给他当前页和总共页数后,我想在点击上一页或者下一页的时候
能够让控件重新绑定。。 如何做呢?帮忙给个思路或者教程 谢谢!
pager:usercontrol
{
public int totalPage{}
public int currentPage{}
...}
将之用在页面上,如何使用这个控件的事件呢?? 比如我传递给他当前页和总共页数后,我想在点击上一页或者下一页的时候
能够让控件重新绑定。。 如何做呢?帮忙给个思路或者教程 谢谢!
public event EventHandler<YourType> OnPageChanged;
//or
public event EventHandler OnPageChanged;
http://www.cnblogs.com/insus/articles/1417957.html
http://www.cnblogs.com/insus/articles/1417102.html