I just read WPF Unleashed, and he noted that the button will look different depending on the XMLNS used.
So, I tried the following and this, and it hit on the right.
In this code, a glossy button is loaded.
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> <StackPanel Height="40"> <Button Content="Button1"/> </StackPanel> </Page>
In this code, a non-global button is loaded.
<Page xmlns="http://schemas.microsoft.com/netfx/2009/xaml/presentation"> <StackPanel Height="40"> <Button Content="Button1"/> </StackPanel> </Page>
Am I just trying to figure out what is really happening? Is it hard-coded that PresentationHost.exe loads 4.0 CLR when it sees the namespace ../ netfx / 2009 / ... ?
source share