[DevExpress Support Team: CLONED FROM T347986: How to create a default item for a drop-down button to imitate the RememberLastCommand option]
is there a new property in 19.1 to set the last command ?
I carefully reviewed our source code, however, I could not find another solution. So, using the reflection is the simplest approach in this scenario.
Please note that this approach uses an undocumented API. We can't guarantee that we won't change it in future versions of our controls.
If you have any further questions, feel free to ask.