| | |
| | | instance = this; |
| | | } |
| | | |
| | | public override void RemoveFromParent() |
| | | { |
| | | base.RemoveFromParent(); |
| | | } |
| | | #endregion |
| | | |
| | | #region ◆ 显示视图_________________________ |
| | |
| | | { |
| | | CurrentRoom = room; |
| | | #region topview |
| | | var topBGView = new FrameLayout()
{
Height = Application.GetRealHeight(CommonPage.Navigation_Height),
BackgroundColor = ZigbeeColor.Current.GXCTopViewBackgroundColor
};
AddChidren(topBGView);
var topView = new FrameLayout()
{
Y = Application.GetRealHeight(CommonPage.NavigationTitle_Y),
Height = Application.GetRealHeight(CommonPage.Navigation_Height - CommonPage.NavigationTitle_Y),
BackgroundColor = ZigbeeColor.Current.GXCTopViewBackgroundColor,
};
AddChidren(topView); |
| | | var topBGView = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(CommonPage.Navigation_Height), |
| | | BackgroundColor = ZigbeeColor.Current.GXCTopViewBackgroundColor |
| | | }; |
| | | AddChidren(topBGView); |
| | | var topView = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(CommonPage.NavigationTitle_Y), |
| | | Height = Application.GetRealHeight(CommonPage.Navigation_Height - CommonPage.NavigationTitle_Y), |
| | | BackgroundColor = ZigbeeColor.Current.GXCTopViewBackgroundColor, |
| | | }; |
| | | AddChidren(topView); |
| | | |
| | | var title = new Button() |
| | | { |
| | |
| | | }; |
| | | topView.AddChidren(title); |
| | | |
| | | var back = new Device.CommonForm.BackButton() { };
topView.AddChidren(back); |
| | | var back = new Device.CommonForm.BackButton() { }; |
| | | topView.AddChidren(back); |
| | | back.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | this.RemoveFromParent(); |