XAMLの最初にxmlns(XMLネームスペース)というものを書きますが、
古いサンプルなどには、古いxmlnsが使われており、コンパイルできない
場合があります。そのときには、新しいxmlnsに書き換えてあげると
動かせる場合もあります。ただし、以前は使えた書式が今では使えない
ということもありますので、その辺は要注意です。
以下は、いろいろなXAML関係のxmlnsです。
【silverlight (旧WPF/E)】
xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
【WPF】
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
【古いWPF】
xmlns="http://schemas.microsoft.com/winfx/avalon/2005"
xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005"
【もっと古いWPF】
xmlns="http://schemas.microsoft.com/2003/xaml"
投稿日時 : 2007年7月8日 17:29