Answer the question
In order to leave comments, you need to log in
How to subscribe to the button click event of all child elements?
This question is of interest: Let's say we have: a Page page, a button on this page, and there are several instances of one View (ContentView), all of them are also on the Page page. These Views are nested within each other, and each of them has some function that must be executed when a button is pressed, which is located on the Page. How can this be implemented?
Answer the question
In order to leave comments, you need to log in
Not a very clear question, but if I understand correctly, then on bare XF without MVVM, simply set x:Name to interactive elements and hang an event on the button and in the event handler refer to your views by the names specified in x:Name, perform the necessary actions .. And if MVVM, then depending on the framework, everything is different. On ReactiveUI for example viaInteraction<TParam, TResult>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question