RepeatButton がめちゃくちゃ便利だった…orz
WPF / .Net Core3.1 / C# / Prism.Unity / Reactiveproperty 参考URL: https://stackoverflow.com/questions/47945833/button-hold-down-to-repeat-commands https://learn.microsoft.com/en-us/dotnet/api/system.windows.controls.primitives.repeatbutton?view=windowsdesktop-7.0&redirectedfrom=MSDN ボタンをMouseDown した状態で、機能を連続するリピート機能… ゴリゴリ書くところだったよ…知らない事が多くて勉強になります! Button → RepeatButton に変更して、設定2個(Delay / Interval)追加するだけでリピートしてくれるよ…楽すぎ! 変更前: <Button Content="左へ" Height="25" Width="30" Command="{Binding MoveLeftCommand}" CommandParameter="10"/> ↓ 変更後: <RepeatButton Content="左へ" Height="25" Width="30" Delay="500" Interval="100" Command="{Binding MoveLeftCommand}" CommandParameter="10"/> 半日作業が1分で終わった…orz 検索用:WPF C# .Net Core ボタン Button リピート 繰り返し やり方 WPF / .Net Core3.1 / C# / Prism....