How to insert white spaces in your XAML property value?
May 9, 2009 Leave a comment
XAML language is treated as XML, it ignores all white spaces. Therefore, if you need to add a value that contains white spaces at the end of it for some reason, it would be ignored. In order to overcome this problem you can use thexml:space=”preserve” in your element declaration.
<Button x:Name="btn" xml:space="preserve">Click ME </Button>