Accessing the content of a button in a non-event function UWP

Hello there! I am just starting to try and teach myself UWP in Visual C++. When I am writing the function for an event I know that I can check the content of a button in the form of button->Content; however, if I have a static function in the MainPage class I am unsure of how to access a specific button's content. Any help would be appreciated. Thank you!

In a static function button->Content gives the error "a nonstatic member reference must be relative to a specific object"

Edit: The function is in the MainPage class
Last edited on
Topic archived. No new replies allowed.