作業中の PivotViewer アプリがありますが、実行できません。
適切な .cxml ファイルがあります (関連するディープズーム ファイルを生成するために Pauthor を使用しました)。私はVS 2010 intデバッグ内から実行しようとしましたが、ビルドしてローカルホストから実行しようとしました。Firefox と IE の両方で確認しました。幅と高さが設定されたコンテナにあることを確認しました。最新の silverlight.js があることを確認し、IIS に適切な MIME を設定しました。
私のXAML:
<UserControl x:Class="DomPivot.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="400" d:DesignWidth="400" Loaded="UserControl_Loaded">
<Grid x:Name="LayoutRoot" Background="White" Width="400" Height="400">
<pivot:PivotViewer x:Name="myPivot" Height="350"></pivot:PivotViewer>
</Grid>
</UserControl>
私のエラー:
Error: Unhandled Error in Silverlight Application Set property 'System.Windows.FrameworkElement.Style' threw an exception. [Line: 11 Position: 52]
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at DominionPivot.MainPage.InitializeComponent()
at DominionPivot.MainPage..ctor()
at DominionPivot.App.Application_Startup(Object sender, StartupEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
ソース ファイル: DomPivotTestPage.aspx 行: 0
行 11 main.xaml の位置 52 は、pivotviewer の Height プロパティの等号になりました。興味深いことに、高さプロパティを追加する前に、プロジェクトは x:Name プロパティの等号でこのエラーをスローしました。
このエラーが発生する理由がわかりません。助けていただければ幸いです。ここで他のトピックを調査しましたが、これらの回答はどれもうまくいきませんでしたし、私の状況に関係していませんでした.
アップデート:
公開ソースから .CXML ファイルを読み込もうとすることで、コントロールが読み込めなくなる原因となる他のエラーではないことを確認しようとしました。同じ結果です。コントロール自体がロードされているとは思わないので、コレクションをロードするコードをデバッグすることさえできません。
「Silverlight アプリケーション セット プロパティ 'System.Windows.FrameworkElement.Style' のハンドルされていないエラーが例外をスローしました。」助けにはなりません。24 件のヒットを返します。それらの半分は無関係です。残りの半分は、同じ問題を抱えているように見える別の人で、6 つ以上のフォーラムに投稿しても回答が得られません。