概念実証の PivotViewer アプリケーションを起動して実行しようとしていますが、テスト環境であっても、コレクションを適切にロードできません。私はこれらの指示に従っています:
ルートに clientaccesspolicy XML ファイルがあり、すべての URI にアクセスを許可しています。既存のコレクションをコピーし、ルートにも配置しました。コレクション XML は正しくチェックアウトされます。
ただし、アプリケーションをデバッグしようとすると、ロードされますが、コレクションの URL が表示されるだけで、実際に PivotViewer が構築されることはありません。
MainPage.xaml:
<UserControl x:Class="PivotViewer.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:Pivot="clr-namespace:System.Windows.Pivot;assembly=System.Windows.Pivot"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">
<Grid x:Name="LayoutRoot" Background="White">
<Pivot:PivotViewer x:Name="Pivot" />
</Grid>
</UserControl>
MainPage.xaml.cs:
namespace PivotViewer
{
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
Pivot.LoadCollection("http://localhost:55334/Top_Movies.cxml", string.Empty);
}
}
}