zoukankan      html  css  js  c++  java
  • [原] XAF 如何使用Top

    1.代碼如下:

     public class S35430 : ViewController<ListView>
        {
            protected override void OnActivated()
            {
                base.OnActivated();
                CustomizeCollectionSource(View.CollectionSource);
                View.CollectionSource.CollectionChanged += new EventHandler(CollectionSource_CollectionChanged);
            }
            protected override void  OnDeactivated()
            {
                View.CollectionSource.CollectionChanged -= new EventHandler(CollectionSource_CollectionChanged);
                  base.OnDeactivated();
            }
          
            private void CollectionSource_CollectionChanged(object sender, EventArgs e)
            {
                CustomizeCollectionSource((CollectionSourceBase)sender);
            }
            private static void CustomizeCollectionSource(CollectionSourceBase cs)
            {
                if (cs != null)
                    cs.TopReturnedObjects = 5;
            }
        }

    欢迎转载,转载请注明出处:http://www.cnblogs.com/Tonyyang/

  • 相关阅读:
    hibernate缓存清除(转)
    hibernate缓存
    hibernate延迟加载
    session进行增删改查操作
    curl命令详解
    CURL 宏定义列表
    CURL常用命令---样例
    打印 上一主题 下一主题 利用cURL实现单个文件分多段同时下载,支持断点续传(修订版)
    curl断点续载
    CURL常用命令
  • 原文地址:https://www.cnblogs.com/Tonyyang/p/2575649.html
Copyright © 2011-2022 走看看