How to reference two default namespaces in XAML

<UserControl x: Class="Xaml01. MainPage"
  xmlns=" http: //schemas. microsoft. com/winfx/2 006/xaml/presentation" 
  xmlns: x="http://schemas.microsoft. com/winfx/2006/xaml" 
  Width=" 400" Height="300">
  <Grid x: Name="LayoutRoot" Background=" White">
    <TextBlock x: Name="myTextBlock" Text="Hello" />
  </Grid>
</UserControl>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.