Hi Forzas,
I tried that, works fine. Try to new a project and testing the code you will find everything should be ok.

Or you could repro the problem with a demo, I'd like to help you with the problem you meet.
Best Regards,
--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.