作成日: 2022/03/16 最終更新日: 2022/03/16
文書種別
制限事項
詳細
製品収録サンプル「SchedulerSamples」のコンボボックスでビュースタイルを変更したときにバインディングエラーが発生します。
例)「テーマ」タブの「ビュー」コンボボックスを月から週へ変更したとき、下記のようなエラーが発生します。
◎エラー内容
| System.Windows.Data Error: 17 : Cannot get 'Item[]' value (type 'VisualInterval') from 'VisualIntervalGroups' (type 'VisualIntervalCollection'). BindingExpression:Path=VisibleGroupItems[0].VisualIntervalGroups[0].VisualIntervals; DataItem='C1Scheduler' (Name='scheduler1'); target element is 'TimeRuler' (Name=''); target property is 'ItemsSource' (type 'IEnumerable') ArgumentOutOfRangeException:'System.ArgumentOutOfRangeException: 指定された引数は、有効な値の範囲内にありません。パラメーター名:index' |
この動作は、製品の制限事項になります。
回避方法
ビュースタイルを変更するとき、製品収録サンプル「SchedulerSamples」のようにtry~catch文で回避してください。