How to clone UIElement in WinRT XAML C#?
I have tried this approach first but getting error "Element is already the child of another element" var objClone = new MyImageControl(); objClone = this; ((Canvas)this.Parent).Children.Add(objClone); Then I checked this and this , but XamlWriter and XamlReader is not available in WinRT. I have tried to use MemberwiseClone() but it throws exception, "COM object that has been separated from its underlying RCW cannot be used. System.Runtime.InteropServices.InvalidComObjectException ". So can anyone tell me how can I clone the existing UserControl in my canvas to itself ? Dr Herbie I have written