| | |
| | | /// </summary> |
| | | public static PageLayout BasePageView { get; set; } |
| | | /// <summary> |
| | | /// DisplayCompleted |
| | | /// </summary> |
| | | public static bool DisplayCompleted = false; |
| | | |
| | | //public static UserInfo LoginUser; |
| | | /// <summary> |
| | | /// 版本号 |
| | | /// </summary> |
| | | public static string VersionString = "1.1.0323"; |
| | |
| | | /// 天气刷新action |
| | | /// </summary> |
| | | public static Action RefreshAir; |
| | | /// <summary> |
| | | /// 回退页面action 没有需要可以不用 |
| | | /// </summary> |
| | | public static Action ReturnRefreshAction; |
| | | /// <summary> |
| | | /// 无登录模式 |
| | | /// </summary> |
| | |
| | | { |
| | | if (e < BasePageView.ChildrenCount - 1) |
| | | { |
| | | MainPage.BasePageView.GetChildren(MainPage.BasePageView.ChildrenCount - 1).RemoveFromParent(); |
| | | } |
| | | |
| | | while (e < BasePageView.ChildrenCount - 1) |
| | | { |
| | | BasePageView.GetChildren(BasePageView.ChildrenCount - 1).RemoveFromParent(); |
| | | } |
| | | try |
| | | { |
| | | ReturnRefreshAction?.Invoke(); |
| | | ReturnRefreshAction = null; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | Log($"后退事件异常:{ex.Message}"); |
| | | } |
| | | //while (e < BasePageView.ChildrenCount - 1) |
| | | //{ |
| | | // BasePageView.GetChildren(BasePageView.ChildrenCount - 1).RemoveFromParent(); |
| | | //} |
| | | }; |
| | | BasePageView.MouseDownEventHandler += (sender, e) => |
| | | { |