MvvmCross Monotouch应用程序第一次冻结显示MvxDialogController

时间:2014-10-10 23:13:04

标签: ios xamarin.ios mvvmcross

我使用tabbarcontroller作为主导航控制器,其中我有一些MvxDialogController特别用于搜索输入 第一次搜索视图呈现时,它会冻结1或2秒..

我有两个相同类型的视图,并且第一次冻结。绑定定义中是否存在问题?

这就是我基本上

    public override void ViewDidLoad ()
    {
        base.ViewDidLoad ();

        View.UserInteractionEnabled = true;
        var bindings = this.CreateInlineBindingTarget<SearchViewModel> ();

        Root = new RootElement ("Search", new RadioGroup ("WhistleType", 0)) {

            new Section () {
                new EntryElement (string.Empty, "inputX")
                    .Bind (bindings, e=> e.Value, vm => vm.Name),
                new EntryElement (string.Empty, "inputY")
                    .Bind (bindings, vm => vm.InputY)
            },

            new Section () {
                new RadioElement ("RadioX")
                    .Bind (bindings, r => r.SelectedCommand, vm => vm.SelectXCommand),
                new RadioElement ("RadioY")
                    .Bind (bindings, r => r.SelectedCommand, vm => vm.SelectYCommand),
            },
         };
        btnGo = new UIBarButtonItem (UIBarButtonSystemItem.Done);

        this.NavigationItem.RightBarButtonItem = this.btnGo;
        var set = this.CreateBindingSet<SearchView,SearchViewModel> ();
        set.Bind (btnGo).To (vm => vm.SearchCommand);


        Root.TableView.UserInteractionEnabled = true;
   }

0 个答案:

没有答案