Exemplo n.º 1
0
 protected GistsView(bool searchbarEnabled)
     : base(unevenRows: true, searchbarEnabled: searchbarEnabled)
 {
     this.WhenActivated(d =>
     {
         d(SearchTextChanging.Subscribe(x => ViewModel.SearchKeyword = x));
     });
 }
Exemplo n.º 2
0
        protected BaseIssuesView()
            : base(unevenRows: true)
        {
            Title = "Issues";

            this.WhenActivated(d =>
            {
                d(SearchTextChanging.Subscribe(x => ViewModel.SearchKeyword = x));
            });
        }
Exemplo n.º 3
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            SearchTextChanging.Subscribe(x => ViewModel.SearchKeyword = x);

            this.BindList(ViewModel.Users, x =>
            {
                var e     = new UserElement(x.Login, string.Empty, string.Empty, x.AvatarUrl);
                e.Tapped += () => ViewModel.GoToUserCommand.Execute(x);
                return(e);
            });
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            SearchTextChanging.Subscribe(x => ViewModel.SearchKeyword = x);

            this.BindList(ViewModel.Languages, x =>
            {
                var el     = new StringElement(x.Name);
                el.Tapped += () => ViewModel.SelectedLanguage = x;
                if (ViewModel.SelectedLanguage != null && string.Equals(x.Slug, ViewModel.SelectedLanguage.Slug))
                {
                    el.Accessory = UITableViewCellAccessory.Checkmark;
                }
                return(el);
            });
        }