public static void Show() { var scanner = new CodeScannerPopup(); var popup = new Popup { Child = scanner }; popup.IsOpen = true; scanner.CloseRequested += ( _, __ ) => popup.IsOpen = false; }
public static void Show() { var scanner = new CodeScannerPopup(); var popup = new Popup { Child = scanner }; popup.IsOpen = true; scanner.CloseRequested += (_, __) => popup.IsOpen = false; }