| | |
| | | BackgroundColor = SkinStyle.Current.Black50Transparent, |
| | | }; |
| | | sceneView.AddChidren (btnSceneName); |
| | | |
| | | |
| | | var btnBGC = new Button () { |
| | | //UnSelectedImagePath = "Item/sss.png", |
| | | UnSelectedImagePath = "Item/Transparent.png", |
| | | SelectedImagePath = "Item/SceneSettingBackground.png", |
| | | TextAlignment = TextAlignment.BottomCenter, |
| | |
| | | }; |
| | | sceneView.AddChidren (btnBGC); |
| | | |
| | | btnBGC.MouseLongEventHandler += (sender, e) => { |
| | | var btnSetSceneIcon = new Button () { |
| | | UnSelectedImagePath = "Item/More2.png", |
| | | SelectedImagePath = "Item/Transparent.png", |
| | | Height = Application.GetRealHeight (50), |
| | | Width = Application.GetRealWidth (60), |
| | | X = Application.GetRealWidth(240), |
| | | Y = Application.GetRealHeight(10), |
| | | }; |
| | | |
| | | |
| | | sceneView.AddChidren (btnSetSceneIcon); |
| | | //btnBGC.MouseLongEventHandler += (sender, e) => { |
| | | btnSetSceneIcon.MouseUpEventHandler += (sender, e) => { |
| | | if (string.IsNullOrEmpty (scene.Name)) |
| | | return; |
| | | btnSetSceneIcon.IsSelected = true; |
| | | LongPressFrameLayout = new FrameLayout () { |
| | | BackgroundColor = SkinStyle.Current.SceneTransparentBackColor, |
| | | }; |
| | | LongPressFrameLayout.MouseUpEventHandler += (sender2, e2) => { |
| | | LongPressFrameLayout.RemoveFromParent (); |
| | | btnSetSceneIcon.IsSelected = false; |
| | | }; |
| | | sceneView.AddChidren (LongPressFrameLayout); |
| | | |