rid00z / FreshMvvm

FreshMvvm is a super light Mvvm Framework designed specifically for Xamarin.Forms. It's designed to be Easy, Simple and Flexible.
Apache License 2.0
595 stars 172 forks source link

Exception: Element is already the child of another element. #298

Open TaaheroHiro opened 4 years ago

TaaheroHiro commented 4 years ago

Hi,

I have been trying to use FreshMVVM Source code to navigate using a hamburger menu as seen below:

image

The navigation works for the most part except when I try to go back to the first item in the menu.

Steps:

  1. Select "Illustrations" (or any other item besides wizard).
  2. Select "Wizard" item. This reveals the following exception : image

This error only appears on UWP and not Android or IOS.

I am using the below code to navigate: image

I have also attached a text file with the code snippet. FreshMVVM code snippet.txt

Please assist as I am not sure why I am getting this error.

TaaheroHiro commented 4 years ago

Hi,

This has been fixed. Had to call base.CreateMenuPage as follows: image