I have a User Control file named B2_CONTENT.xaml
, it has a button.
and it source file named G2_CONTENT.xaml.cs
, this file has a click event for the button
And I Have another User Control Names B4_CONTENT.xaml, it has a text box.
and these User Controlls all connected in the main window as a Grid Rows
my problem is….
how to make the click event (that from B2_CONTENT
) change the text of the text block (that from B4_CONTENT
) by accessing the textblock element for the B2_CONTENT
file ?
my main question here is: how to ACCESS the elements and data from a UserControll file to another UserControll file ?
i tried to make a static class with a static string, for both files so they can access the variable
and binding it, but that actually didn’t work,
what i need is know how to ACCESS the elements and data from a UserControll file to another UserControll file….
Imblark is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.