/// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.
        /// This parameter is typically used to configure the page.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            string idtopico = e.Parameter.ToString();
            DatabaseHelperClass dbtopicos  = new DatabaseHelperClass();
            Conteudo_Topico     TopicTitle = dbtopicos.ReadTopicTitle(idtopico);

            MainPage.instance.change_title(TopicTitle.Titulo.ToString());

            ObservableCollection <Classes.Conteudo_Subtopico> SubtopicsList = dbtopicos.ReadSubtopicos(idtopico);//Get all DB contacts

            foreach (var Subtopico in SubtopicsList)
            {
                Subtopico.parent_subtopico.Icone = ConfigData.Iconpath + Subtopico.parent_subtopico.Icone;
            }
            listBoxobj.ItemsSource = SubtopicsList.OrderByDescending(i => i.Titulo).ToList();//Latest contact ID can Display first
        }
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.
        /// This parameter is typically used to configure the page.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            DatabaseHelperClass dbtopicos = new DatabaseHelperClass();

            if (e.Parameter is Subtopico)
            {
                Subtopico          st            = e.Parameter as Subtopico;
                Conteudo_Subtopico SubtopicTitle = dbtopicos.ReadSubtopicTitle(st.Titulo);
                MainPage.instance.change_title(SubtopicTitle.Titulo.ToString());

                Uri targetUri = new Uri(ConfigData.Htmlpath + SubtopicTitle.Documento);
                webviewCont.Navigate(targetUri);
            }
            else if (e.Parameter is Topico)
            {
                Topico t = e.Parameter as Topico;

                if (t.Titulo == "FAQ")
                {
                    if (localSettings.Values["Idioma"].ToString() == "pt")
                    {
                        MainPage.instance.change_title("Perguntas Frequentes");
                    }
                    else
                    {
                        DatabaseHelperClass dbhandle = new DatabaseHelperClass();
                        string s = dbhandle.Translate("Perguntas Frequentes");
                        MainPage.instance.change_title(s);
                    }

                    Uri targetUri = new Uri(ConfigData.Htmlpath + "faq_" + localSettings.Values["Idioma"].ToString() + ".html");
                    webviewCont.Navigate(targetUri);
                }
                else
                {
                    Conteudo_Topico TopicTitle = dbtopicos.ReadTopicTitle(t.Titulo);
                    MainPage.instance.change_title(TopicTitle.Titulo.ToString());

                    Uri targetUri = new Uri(ConfigData.Htmlpath + TopicTitle.Documento);
                    webviewCont.Navigate(targetUri);
                }
            }
        }