/** * * @date 2014-10-20 * * @author 邓尹平 * * @par 成员列表类 说明 * 主要负责管理成员 提供搜索\排序和操作的方法 * * @par 版权声明 * 深圳市多元世纪信息技术有限公司 版权所有 * * @see 使用此类时参照一些其他类可以写在这里 * * @todo 该类有待完成的任务 一条条列出 完成一条删除一条 * * @bug 该类已知的Bug一条条列出 完成一条删除一条 * */ using System.Windows; using System.Windows.Controls; namespace Muchinfo.DataPager.Base { public class MuchinfoPagerPresenter : Control { public static readonly DependencyProperty NumericButtonCountProperty; public static readonly DependencyProperty NumericButtonStyleProperty; public static readonly DependencyProperty PageIndexProperty; public static readonly DependencyProperty PageCountProperty; public static readonly DependencyProperty PageSizeProperty; public static readonly DependencyProperty ItemCountProperty; public int NumericButtonCount { get { return (int)base.GetValue(MuchinfoPagerPresenter.NumericButtonCountProperty); } set { base.SetValue(MuchinfoPagerPresenter.NumericButtonCountProperty, value); } } public Style NumericButtonStyle { get { return (Style)base.GetValue(MuchinfoPagerPresenter.NumericButtonStyleProperty); } set { base.SetValue(MuchinfoPagerPresenter.NumericButtonStyleProperty, value); } } public int PageIndex { get { return (int)base.GetValue(MuchinfoPagerPresenter.PageIndexProperty); } set { base.SetValue(MuchinfoPagerPresenter.PageIndexProperty, value); } } public int PageCount { get { return (int)base.GetValue(MuchinfoPagerPresenter.PageCountProperty); } set { base.SetValue(MuchinfoPagerPresenter.PageCountProperty, value); } } public int PageSize { get { return (int)base.GetValue(MuchinfoPagerPresenter.PageSizeProperty); } set { base.SetValue(MuchinfoPagerPresenter.PageSizeProperty, value); } } public int ItemCount { get { return (int)base.GetValue(MuchinfoPagerPresenter.ItemCountProperty); } set { base.SetValue(MuchinfoPagerPresenter.ItemCountProperty, value); } } static MuchinfoPagerPresenter() { MuchinfoPagerPresenter.NumericButtonCountProperty = DependencyProperty.Register("NumericButtonCount", typeof(int), typeof(MuchinfoPagerPresenter), new PropertyMetadata(null)); MuchinfoPagerPresenter.NumericButtonStyleProperty = DependencyProperty.Register("NumericButtonStyle", typeof(Style), typeof(MuchinfoPagerPresenter), new PropertyMetadata(null)); MuchinfoPagerPresenter.PageIndexProperty = DependencyProperty.Register("PageIndex", typeof(int), typeof(MuchinfoPagerPresenter), new PropertyMetadata(null)); MuchinfoPagerPresenter.PageCountProperty = DependencyProperty.Register("PageCount", typeof(int), typeof(MuchinfoPagerPresenter), new PropertyMetadata(null)); MuchinfoPagerPresenter.PageSizeProperty = DependencyProperty.Register("PageSize", typeof(int), typeof(MuchinfoPagerPresenter), new PropertyMetadata(null)); MuchinfoPagerPresenter.ItemCountProperty = DependencyProperty.Register("ItemCount", typeof(int), typeof(MuchinfoPagerPresenter), new PropertyMetadata(null)); FrameworkElement.DefaultStyleKeyProperty.OverrideMetadata(typeof(MuchinfoPagerPresenter), new FrameworkPropertyMetadata(typeof(MuchinfoPagerPresenter))); } } }