- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am able to successfully add dynamic inputs and they work as expected, but so far I have not found a way to connect to the event changed handler.
The dynamic inputs are being created in my InputChangedEventHandler so eventArgs are Ptr<InputChangedEventArgs> which does not provide access to inputChanged command directly.
I have tried using the command object obtained from eventArgs->inputs()->command() and that works for the tab via "APITabBar" id, but it does not work for the dynamically added inputs.
I am starting to think that it is not possible to add an input changed event handler while handling an input changed event and that I will need to create the possible inputs in the create handler and toggle their visibility on and off. I don't like that solution, but it looks doable with the downside of adding additional complexity to my code.
Solved! Go to Solution.