{"action":"created","issue":{"url":"https://api.github.com/repos/MvvmCross/MvvmCross/issues/1120","labels_url":"https://api.github.com/repos/MvvmCross/MvvmCross/issues/1120/labels{/name}","comments_url":"https://api.github.com/repos/MvvmCross/MvvmCross/issues/1120/comments","events_url":"https://api.github.com/repos/MvvmCross/MvvmCross/issues/1120/events","html_url":"https://github.com/MvvmCross/MvvmCross/issues/1120","id":103667330,"number":1120,"title":"MvxListView binding doesn't work","user":{"login":"NPadrutt","id":1764367,"avatar_url":"https://avatars.githubusercontent.com/u/1764367?v=3","gravatar_id":"","url":"https://api.github.com/users/NPadrutt","html_url":"https://github.com/NPadrutt","followers_url":"https://api.github.com/users/NPadrutt/followers","following_url":"https://api.github.com/users/NPadrutt/following{/other_user}","gists_url":"https://api.github.com/users/NPadrutt/gists{/gist_id}","starred_url":"https://api.github.com/users/NPadrutt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NPadrutt/subscriptions","organizations_url":"https://api.github.com/users/NPadrutt/orgs","repos_url":"https://api.github.com/users/NPadrutt/repos","events_url":"https://api.github.com/users/NPadrutt/events{/privacy}","received_events_url":"https://api.github.com/users/NPadrutt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-28T08:10:41Z","updated_at":"2015-08-28T09:25:49Z","closed_at":null,"body":"Hi\r\n\r\nI have this layout:\r\n\r\n    <cirrious.mvvmcross.binding.droid.views.MvxListView\r\n          xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n          xmlns:local=\"http://schemas.android.com/apk/res-auto\"\r\n          android:id=\"@+id/accountList\"\r\n          android:layout_width=\"fill_parent\"\r\n          android:layout_height=\"fill_parent\"\r\n          android:orientation=\"vertical\"\r\n          local:MvxItemTemplate=\"@layout/accountlistitem\"\r\n          local:MvxBind=\"ItemsSource AllAccounts\" />\r\n\r\nThe layout is loaded in the fragment with this code:\r\n\r\n\r\n    public new AccountListViewModel ViewModel\r\n        {\r\n            get { return (AccountListViewModel)base.ViewModel; }\r\n            set { base.ViewModel = value; }\r\n        }\r\n\r\n        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\r\n        {\r\n            var ignore = base.OnCreateView(inflater, container, savedInstanceState);\r\n            var view = this.BindingInflate(Resource.Layout.AccountListLayout, null);\r\n\r\n            //TODO: Move this to binding\r\n            var list = view.FindViewById<MvxListView>(Resource.Id.accountList);\r\n            list.ItemsSource = ViewModel.AllAccounts;\r\n\r\n            return view;\r\n        }\r\n\r\n\r\nAnd in my ViewModel:\r\n\r\n        public ObservableCollection<Account> AllAccounts\r\n        {\r\n            get { return accountRepository.Data; }\r\n            set { accountRepository.Data = value; }\r\n        }\r\n\r\nThis won't work and won't show any data. But when I add the following lines to the fragment my data is displayed properly:\r\n\r\n            var list = view.FindViewById<MvxListView>(Resource.Id.accountList);\r\n            list.ItemsSource = ViewModel.AllAccounts;\r\n\r\nIn another example this worked without any problems. Is here a bug or do I miss something?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/MvvmCross/MvvmCross/issues/comments/135709882","html_url":"https://github.com/MvvmCross/MvvmCross/issues/1120#issuecomment-135709882","issue_url":"https://api.github.com/repos/MvvmCross/MvvmCross/issues/1120","id":135709882,"user":{"login":"martijn00","id":6221156,"avatar_url":"https://avatars.githubusercontent.com/u/6221156?v=3","gravatar_id":"","url":"https://api.github.com/users/martijn00","html_url":"https://github.com/martijn00","followers_url":"https://api.github.com/users/martijn00/followers","following_url":"https://api.github.com/users/martijn00/following{/other_user}","gists_url":"https://api.github.com/users/martijn00/gists{/gist_id}","starred_url":"https://api.github.com/users/martijn00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martijn00/subscriptions","organizations_url":"https://api.github.com/users/martijn00/orgs","repos_url":"https://api.github.com/users/martijn00/repos","events_url":"https://api.github.com/users/martijn00/events{/privacy}","received_events_url":"https://api.github.com/users/martijn00/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T09:25:49Z","updated_at":"2015-08-28T09:25:49Z","body":"You might want to take a look at this Sample: https://github.com/MvvmCross/MvvmCross-AndroidSupport/tree/master/Samples\r\n\r\nThe bindings work there, so i think there is some difference in your code then. I you figure out where, we could look into why it worked before."}}