MapTileSource の DataSource をビュー モデルのプロパティにバインドしようとしていますが、Maps:MapTileSource 行で REGDB_E_CLASSNOTREG エラーが発生しています (青色の下線は VS エディターです)。同じ効果を達成するためにバインディング ヘルパーをいつでも使用できます (アプリの 8.0 バージョンで必要でした) が、これはうまくいくはずです。何が間違っているのですか?
<Maps:MapControl Style="{Binding Path=MapStyle}" Center="{Binding Path=MapCenter, Mode=TwoWay}" ZoomLevel="{Binding Path=ZoomLevel, Mode=TwoWay}" MapServiceToken="">
<Maps:MapControl.TileSources>
<Maps:MapTileSource Layer="BackgroundReplacement" DataSource="{Binding Path=BaseLayerDataSource}" />
</Maps:MapControl.TileSources>
</Maps:MapControl>
同じ効果を持つ静的データ ソースだけでも試しました。
<Maps:MapControl Style="{Binding Path=MapStyle}" Center="{Binding Path=MapCenter, Mode=TwoWay}" ZoomLevel="{Binding Path=ZoomLevel, Mode=TwoWay}" MapServiceToken="">
<Maps:MapControl.TileSources>
<Maps:MapTileSource Layer="BackgroundReplacement">
<Maps:MapTileSource.DataSource>
<Maps:HttpMapTileDataSource UriFormatString="" />
</Maps:MapTileSource.DataSource>
</Maps:MapTileSource>
</Maps:MapControl.TileSources>
</Maps:MapControl>
編集: http://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn632728.aspxでサンプル コードを試してみましたが、正常に動作するため、MapTileSource 自体が登録解除されていないことは明らかです。しかし、それはすべて分離コードであり、データ バインディングを使用していないため、あまり役に立ちません。
編集 2: エラーを無視してアプリを電話エミュレーターにデプロイしようとすると、ビューの InitializeComponent() で次のようになります。
An exception of type 'Windows.UI.Xaml.Markup.XamlParseException' occurred in HikePoint.exe but was not handled in user code
WinRT information: Cannot deserialize XBF metadata type list as '%1' was not found in namespace '%0'. [Line: 0 Position: 0]
Additional information: The text associated with this error code could not be found.
Cannot deserialize XBF metadata type list as '%1' was not found in namespace '%0'. [Line: 0 Position: 0]
If there is a handler for this exception, the program may be safely continued.