Hi N S Accessoftek,
Easy to fix, put a "x:" before the "Name". Here is a documentation explain quite in detail why you need x: prefix.
<local2:SharedUserControl x:Name="ctlShared" / >
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.