Button click delegate for class method
Posted: 08 Apr 2015, 02:42
I'm looking to make a C++ class function to handle a button click event (and eventually other things). Is there somewhere to see the event signatures to handle this and how to set this up? I'm not sure how to setup the C++ callback member method and how to assign it. I'm thinking it has something to do with the below but I'm not finding any examples that do this.
Also I'm trying to add this to the class I'm doing the above code in. Some possibly some sort of:
Button3->Click() += MakeDelegate(this, App::Button3_OnClick);
But this doesn't work.
Code: Select all
Button3 = uiRenderer->GetXAML()->FindName<Button>("Button3");
Button3->Click() += MakeDelegate()Button3->Click() += MakeDelegate(this, App::Button3_OnClick);
But this doesn't work.