初投稿です。あるべのと申します。
現在Silverlight4,Microsoft Visual Web Developer2010 Expressで開発をしています。
その際に、THE CODE PROJECTで公開されている、FloatingWindowを利用しています。
http://www.codeproject.com/KB/silverlight/FloatingWindow.aspx
その際に、FloatingWindowが表示されている状態でChildWindowを使いたいのですが、
デバッグ中の場合だと、.Show()メソッドが実行された時点でエラーが発生しSilverlightが真っ白の画面になります。
IE上で動かした場合だと、以下のようなメッセージがスローされます。
Web ページ エラーの詳細
ユーザー エージェント: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; .NET CLR 3.0.30729)
タイムスタンプ: Thu, 10 Feb 2011 05:22:51 UTC
メッセージ: Silverlight アプリケーションでハンドルされていないエラーが発生しました:
コード: 4004
カテゴリ: ManagedRuntimeError
メッセージ: System.InvalidOperationException: System.InvalidOperationException: TargetName X を解決できません。
場所 MS.Internal.XcpImports.VisualStateManager_GoToState(Control reference, String StateName, Boolean useTransitions, Boolean& refreshInheritanceContext)
場所 System.Windows.VisualStateManager.GoToState(Control control, String stateName, Boolean useTransitions)
場所 System.Windows.Controls.Button.ChangeVisualState(Boolean useTransitions)
場所 System.Windows.Controls.Button.OnApplyTemplate()
場所 System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)
場所 MS.Internal.XcpImports.VisualStateManager_GoToState(Control reference, String StateName, Boolean useTransitions, Boolean& refreshInheritanceContext)
場所 System.Windows.VisualStateManager.GoToState(Control control, String stateName, Boolean useTransitions)
場所 System.Windows.Controls.Button.ChangeVisualState(Boolean useTransitions)
場所 System.Windows.Controls.Button.OnApplyTemplate()
場所 System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)
ライン: 54
文字: 13
コード: 0
URI: file:///C:/Users/presen/work/RPSESE/RPSESE/Bin/Debug/RPSESETestPage.html
今現在も原因を調べているのですが、解決方法の検討がつかなかったため投稿させていただきました。