'Registering Focus events on ContentDialog
I am trying to listen to focus events on a ContentDialog. This is what my code looks like
auto gettingFocusToken_ = view_.GettingFocus({this, &MyDialogImpl::OnGettingFocus});
and
void MyDialogImpl::OnGettingFocus(
const UIElement& sender, const GettingFocusEventArgs& args) {
// some processing code
}
but I never receive the callback when the dialog is opened or I switch to dialog after intracting with system menu. Is there anything else that needs to be done to enable the invocation of the callback from the WinRT framework?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
