.NET C# WPFの小ネタ
LimitedConcurrencyLevelTaskScheduler deadlock
- LimitedConcurrencyLevelTaskSchedulerを使っていて、ContinueWith()でデッドロックしてしまったら、以下を参考。
- c# - Continuation Tasks Hanging When Using LimitedConcurrencyLevelTaskScheduler - Stack Overflow
http://stackoverflow.com/questions/8277291/continuation-tasks-hanging-when-using-limitedconcurrencyleveltaskscheduler - かいつまんで言うと、ContinueWith()でTaskScheduler.Defaultを指定する。
単一選択のListBoxでダブルクリックされた時にitemを取得する方法
- ListBoxのMouseDoubleClickイベントを拾うのはいいが、SelectedItemsがダブルクリックされたと見なすと、何かおかしい。
- ListBoxのスクロールバーをダブルクリックすると、その時に選択状態のアイテムが選択されたことになる。
- 以下が参考になりそう。
- c# - Get the item doubleclick event of listview - Stack Overflow
http://stackoverflow.com/questions/929179/get-the-item-doubleclick-event-of-listview/929960#929960 - c# - Get the item doubleclick event of listview - Stack Overflow
http://stackoverflow.com/questions/929179/get-the-item-doubleclick-event-of-listview/23060836#23060836
- c# - Get the item doubleclick event of listview - Stack Overflow