| | |
| | | try |
| | | { |
| | | Application.DesignWidth = 375; |
| | | Application.DesignHeight = 667; |
| | | Application.DesignHeight = 667+20; |
| | | //设置语言环境 防止string转 double出现逗号,todouble异常等问题 |
| | | System.Globalization.CultureInfo.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("zh-CN"); |
| | | |
| | | BaseView = Application.MainPage; |
| | | //BaseView = Application.MainPage; |
| | | Application.MainPage.BackgroundColor = CSS_Color.MainBackgroundColor; |
| | | //Application.MainPage.BackgroundColor = 0xFFFF0000;// CSS_Color.MainBackgroundColor; |
| | | //BaseView = new FrameLayout() |
| | | //{ |
| | | // Y = Application.GetRealHeight(20), |
| | | // Width = Application.GetRealWidth(376), |
| | | // Height = Application.GetRealHeight(667), |
| | | //}; |
| | | //Application.MainPage.AddChidren(BaseView); |
| | | BaseView = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(20), |
| | | Width = Application.GetRealWidth(376), |
| | | Height = Application.GetRealHeight(667), |
| | | }; |
| | | Application.MainPage.AddChidren(BaseView); |
| | | Language.UpdateLanguage(); |
| | | //#region 测试 |
| | | //var ddd = new UI.test.TestDialog(); |