Description
When using custom renderer for the content view. It throws "Element is already the child of another element" while converting the content of the content view to the content presenter using the content control.
Steps to Reproduce
- Run the attached sample.
- Navigate to the sub page and navigate back.
- Content view gets hidden and page not navigated back properly.
- Exception gets thrown in the on element changed method of custom renderer.
Expected Behavior
Page should be navigated back properly with the content view as like the second time.
Actual Behavior
In first time page is not navigated back properly and also content view gets disappear.
Screenshots
- Actual Output
- Expected Output
Workaround
Please check the below sample. CustomControl.zip
Can anyone help me with this?