Exemplo n.º 1
0
        public void Navigate(UserControl nextPage, object state)
        {
            this.Content = nextPage;
            ISwitchable s = nextPage as ISwitchable;

            if (s != null)
            {
                s.UtilizableState(state);
            }
            else
            {
                throw new ArgumentException("NextPage is not ISwitchable " + nextPage.Name.ToString());
            }
            {
            }
        }