示例#1
0
        protected override void OnViewModelSet()
        {
            base.OnViewModelSet();
            SetContentView(Resource.Layout.Main);

            var dialog = new MaterialDialog.Builder(this).SetContent("正在加载更多").SetCancelable(false).SetProgress(true, 0).Build();

            Messenger.Subscribe <LoadMoreMessager>(x =>
            {
                if (x.IsClose)
                {
                    dialog.Dismiss();
                }
                else
                {
                    dialog.Show();
                }
            });
        }