public void Navigate(Page nextPage, object state) { Window.GetWindow(this).Content = nextPage; INavigatable n = nextPage as INavigatable; if (n != null) { n.ProcessState(state); } else { throw new ArgumentException("Halaman " + nextPage.Name + " tidak memiliki state!"); } }