private void Application_Startup(object sender, StartupEventArgs e) { Dictionary <string, string> dir = e.InitParams as Dictionary <string, string>; setting.BgImageUrl = DrawingSetting.GetSettingValue(dir, "BgImageUrl"); this.RootVisual = new MainPage(setting); }
public MainPage(DrawingSetting setting) { InitializeComponent(); dropDrager = new DropDrager(casDrawPanel, ssvDraw, scaleTransform); LoadImage(setting.BgImageUrl); }