.NET 學習

.NET 學習生活感想... 万事成蹉跎..... 贵在坚持 及时整理自己做过和学过的东西

博客园 首页 新随笔 联系 订阅 管理
 功能簡單直接上代碼:

 public partial class ListViewAnalyzViewController : ViewController
    {
        public ListViewAnalyzViewController()
        {
            InitializeComponent();
            RegisterActions(components);
            TargetViewId = "Analysis_DetailView";
        }

        protected override void OnActivated()
        {
            base.OnActivated();
            View.ControlsCreated += new EventHandler(View_ControlsCreated);
        }

        void View_ControlsCreated(object sender, EventArgs e)
        {
            Analysis currentAnalysis = (Analysis)View.CurrentObject;
            if (currentAnalysis.DataType != null)
            {
                Frame.GetController<DevExpress.ExpressApp.PivotChart.AnalysisDataBindController>().BindDataAction.DoExecute();
            }
        }
    }

posted on 2012-12-27 10:03  Tonyyang  阅读(364)  评论(0编辑  收藏  举报
欢迎转载,转载请注明出处:http://www.cnblogs.com/Tonyyang/