public BigDataPage() { this.InitializeComponent(); viewmodel = new ZSCY_Win10.ViewModels.BigDataViewModel(); this.DataContext = viewmodel; bigdatacaipage = this; this.SizeChanged += BigDataPage_SizeChanged; //手机物理返回键订阅事件 if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons")) { Windows.Phone.UI.Input.HardwareButtons.BackPressed += OnBackPressed; } else { Windows.UI.Core.SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = Windows.UI.Core.AppViewBackButtonVisibility.Visible; Windows.UI.Core.SystemNavigationManager.GetForCurrentView().BackRequested += PC_BackRequested; } }
public BigDataPage() { this.InitializeComponent(); comboBox0.ItemsSource = colleage; comboBox1.ItemsSource = attention; comboBox2.ItemsSource = colleage; comboBox3.ItemsSource = colleage; viewmodel = new ZSCY_Win10.ViewModels.BigDataViewModel(); this.DataContext = viewmodel; bigdatacaipage = this; this.SizeChanged += BigDataPage_SizeChanged; //手机物理返回键订阅事件 if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons")) { Windows.Phone.UI.Input.HardwareButtons.BackPressed += OnBackPressed; } else { Windows.UI.Core.SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = Windows.UI.Core.AppViewBackButtonVisibility.Visible; Windows.UI.Core.SystemNavigationManager.GetForCurrentView().BackRequested += PC_BackRequested; } }