Current filter:
                                You should refresh the page.
                                • Stas (DevExpress Support) 09.05.2019

                                  Before we suggest any solution to you, we need to completely understand your scenario. Would you please describe it in greater detail? A step-by-step description and a couple of images demonstrating the current and expected result would be greatly appreciated.
                                  I look forward to your response.

                                • Paolo For. 09.05.2019

                                  Hi Stas,
                                  I just want to achive the same goal (as Svetlana solution)

                                  [C#]
                                  PropertyInfo info = typeof(BarButtonItem).GetProperty("LastClickedLink", BindingFlags.NonPublic | BindingFlags.Instance); info.SetValue(btnSplit, popSplit.ItemLinks[0]);

                                  but without using reflection.

                                1 Solution

                                Creation Date Importance Sort by

                                Hello Paolo,
                                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.

                                • Paolo For. 09.11.2019

                                  Hi Dmitry,
                                  >Please note that this approach uses an undocumented API.

                                  I know, that's why I asked for a native solution, since 4 years have passed from Svetlana's snippet*,* maybe something changed.
                                  Maybe you can put on your roadmap to implement a native method.

                                  Thank you.

                                • Dmitry Tor (DevExpress Support) 09.12.2019

                                  Hi Paolo,
                                  I understand your point. We agree that it can be useful to have an API to set the last command for BarItem as you requested. I have passed your inquiry to our developers. We will keep this idea in mind and see if it is possible to improve the current behavior in the future.