internal SummaryView (SummaryViewModel model) { _model = model; _model.Navigation = Navigation; BindingContext = _model; InitializeComponent(); }
/// <summary> /// Constructs a new app adding the current assembly to be tested /// </summary> public App () { InitializeComponent (); // OnPlatform only reports WinPhone for WinPhone Silverlight, so swap // out the background color in code instead if(Device.OS == TargetPlatform.Windows) { Resources["defaultBackground"] = Resources["windowsBackground"]; } _model = new SummaryViewModel(); MainPage = new NavigationPage(new SummaryView(_model)); #if !WINDOWS_PHONE_APP AddTestAssembly(Assembly.GetCallingAssembly()); #endif }
public App() { _model = new SummaryViewModel(); MainPage = new NavigationPage(new SummaryView(_model)); AddTest(Assembly.GetCallingAssembly()); }
public SummaryView (SummaryViewModel model) { model.Navigation = Navigation; BindingContext = model; InitializeComponent (); }