PageFunction.Resources
PageFunction を作成して、XAML 内に <PageFunction.Resources> 要素を配置するとコンパイルエラーになってしまいます。だいぶ悩んでたんですが、Microsoft Connect で検索すると PageFunction.Resources won't compile というフィードバックが引っかかりました。2006/09/13 17:42 に、Microsoft がコメントをつけています。
Good issue. We likely aren't going to be able to fix that.
You should be able to use any subclass for the classname in the property element.よい問題提起です。僕たちはそれをフィックスできないかもしれない。
プロパティの要素では、クラス名としてどんなサブクラスでも使用できるべきです。Please try to use Page.Resources or PageFunctionBase.Resources as your workaround.
The intellisense will complain, but it should work.回避策として、Page.Resources か PageFunctionBase.Resources を試してみてください。
インテリセンスはぶつくさ言いますが、機能するはずです。Another option is to put the resources one level down (inside the first panel, perhaps).
別の選択肢としては、ひとつ下の階層(多分、最初のパネルの中に)にリソースを配置することです。
バグかよ!だいたい、WPF がらみってわけのわからないコンパイルエラーで延々悩んだりして、どうにも効率が悪いです 泣。
トラックバック
- このエントリーにトラックバック:
- http://frog.raindrop.jp/cgi-bin/mt/mt-tb.cgi/2179
コメント