public FrameAdapter(Frame frame) { this.frame = frame; this.frame.Navigated += OnNavigated; this.frame.Navigating += OnNavigating; }