public OshimenPage() { name2 = new ObservableCollection <string>(); name = new ObservableCollection <string>(); menu = (Application.Current as App).menu; ViewModel = (Application.Current as App).ViewModel; Initialization(); this.InitializeComponent(); }
/// <summary> /// 初始化单一实例应用程序对象。这是执行的创作代码的第一行, /// 已执行,逻辑上等同于 main() 或 WinMain()。 /// </summary> public App() { conn = new SQLiteConnection(new SQLitePlatformWinRT(), path); //datebase建表 conn.CreateTable <Models.Member>(); menu = new Models.Menu(); ViewModel = new MemberViewModel(); SongList = new SongViewModels(); this.InitializeComponent(); this.Suspending += OnSuspending; }
public MemberPage() { ViewModel = (Application.Current as App).ViewModel; this.InitializeComponent(); }
public BlogPage() { menu = (Application.Current as App).menu; ViewModel = (Application.Current as App).ViewModel; this.InitializeComponent(); }