Core no work equal in Android and iPhone

3 replies. Last post: May 11, 2015 10:12 AM by Arief Handany
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

I've developed my first app in Android using Crosslight.

One of the activities of my app is a "DrawerViewModelBase". It has a "ListViewModelBase" in the center, and a "EditorViewModelBase" in the right side. The "EditorViewModelBase" is a Form.

		public ValesDrawerViewModel()		{			this.CenterViewModel = new ValeListViewModel();
			this.RightViewModel = new FiltroEditorViewModel();
		}

Right side is a filter that, when it is closed, updates the items of the center. To control this event, in Close method of "DrawerViewModelBase", I get new items in the CenterViewModel.

		public override void Close()
		{
			if (this.OpenedDrawer == DrawerSide.Right)
			{
				GetValesAsync();
			}
			base.Close();
		}
		protected virtual async void GetValesAsync()
		{
			...
			((ValeListViewModel)this.CenterViewModel).Items = selectResult;
			...
		}


In Android is OK, but in iPhone, when I Close the right side, it doesn't enter in Close method and it doesn't update items.

How can I solve this problem?

How can I send data between CenterViewModel and RightViewModel?


 

All times are GMT -5. The time now is 12:51 AM.
Previous Next