Accessing other class objects from within a UserControl?
Posted on 2014-01-10
I kind of asked this question before but didn't really word it correctly.
I have several projects within my solution including a new Windows Control Library project. In my new control, I need to access public objects, i.e. variables, methods, functions from within my main project but not sure how to do it. I tried adding a reference of my main application to the Windows Control Library project but it would not let me saying:
"A reference to 'WindowsApplication1' could not be added. Adding this project as a reference would cause a circular dependency".
So, my question is, from within the code of my UC, how do I access objects from other classes, specifically my main project?