private void InitPageForNavigator()
 {
     frameSys            = new NavigatorSystem(Navigator, NavigatorBar, NavigatorBackBtn, Resources["NavigateListButton"] as Style, new PageFactory());
     frameSys.Navigated += (s, e) => { //完成一次导航。
         MainWindow.reference.setTitle(e.NowPage.Title);
     };
     frameSys.Goto("welcome");
 }
 public FunctionSystem(NavigatorSystem navigatorsystem, Expander expander, StackPanel charactercontent, StackPanel functioncontent, Style characterstyle, Style functionstyle, CharacterTemplate[] template)
 {
     this.template       = template;
     characterlist       = charactercontent;
     functionlist        = functioncontent;
     this.expander       = expander;
     this.characterstyle = characterstyle;
     this.functionstyle  = functionstyle;
     navigator_system    = navigatorsystem;
     characterlist.Children.Clear();
     functionlist.Children.Clear();
     CreateElements();
 }