Beispiel #1
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            // Use this to return your custom view for this Fragment
            // return inflater.Inflate(Resource.Layout.YourFragment, container, false);

            base.OnCreateView(inflater, container, savedInstanceState);
            var view       = inflater.Inflate(Resource.Layout.counsellingslistviewlayout, container, false);
            var titlelabel = view.FindViewById <TextView>(Resource.Id.counsellinglistlabel);

            titlelabel.Text = "Counsellors";

            var counsellors_list = view.FindViewById <ListView>(Resource.Id.counselling_listview);

            _adapter = new CounsellorsList_Adapter(this.Activity, Vm.CounsellorsList);
            Vm.LoadCounsellorsCommand.Execute(null);
            counsellors_list.Adapter             = _adapter;
            counsellors_list.OnItemClickListener = this;

            //this.HasOptionsMenu = true;
            return(view);
        }
Beispiel #2
0
 public Filter_CounsellorItemModel(CounsellorsList_Adapter adapter)
 {
     _adapter = adapter;
 }