WinJS.Namespace.define() には関数も登録できるけれども、exception が発生してしまう。
エラーメッセージ
WinJS.Utilities.requireSupportedForProcessing: Value is not supported within a declarative processing context, if you want it to be supported mark it using WinJS.Utilities.markSupportedForProcessing.
親切にも WinJS.Utilities.markSupportedForProcessing を使うようヒントをくれているので、素直に従いましょう~
サンプル
example.js
WinJS.Utilities.markSupportedForProcessing(onItemClicked);
WinJS.Namespace.define('SampleData', {onItemClicked: onItemClicked});