void CreateSubWindowTwo() { if (subWindowTwo == null) { IBorderInterface customBorder = new CustomBorder(); subWindowTwo = new Window("subwin1", customBorder, new Rectangle(60, 20, 800, 800), false); subWindowTwo.BackgroundColor = Color.Red; var root = new View() { Layout = new LinearLayout() { LinearAlignment = LinearLayout.Alignment.CenterHorizontal, }, WidthResizePolicy = ResizePolicyType.FillToParent, HeightResizePolicy = ResizePolicyType.FillToParent, BackgroundColor = Color.Yellow, }; var image = new ImageView() { Size = new Size(300, 300), ResourceUrl = imagePath + "gallery-large-5.jpg", CornerRadius = new Vector4(0.03f, 0.03f, 0, 0), CornerRadiusPolicy = VisualTransformPolicyType.Relative, }; root.Add(image); subWindowTwo.Add(root); } else { subWindowTwo.Minimize(false); } }
void CreateSubWindowTwo() { if (subWindowTwo == null) { CustomBorder customBorder = new CustomBorder(); subWindowTwo = new Window("subwin1", customBorder, new Rectangle(60, 20, 800, 800), false); subWindowTwo.InterceptTouchEvent += (s, e) => { Tizen.Log.Error("NUI", $"subWindowTwo.InterceptTouchEvent\n"); if (e.Touch.GetState(0) == PointStateType.Down) { customBorder.OverlayBorderShow(); } return(false); }; var root = new View() { Layout = new LinearLayout() { LinearAlignment = LinearLayout.Alignment.CenterHorizontal, }, WidthResizePolicy = ResizePolicyType.FillToParent, HeightResizePolicy = ResizePolicyType.FillToParent, BackgroundColor = Color.Brown, }; var image = new ImageView() { Size = new Size(300, 300), ResourceUrl = imagePath + "gallery-large-5.jpg", CornerRadius = new Vector4(0.03f, 0.03f, 0, 0), CornerRadiusPolicy = VisualTransformPolicyType.Relative, }; root.Add(image); subWindowTwo.Add(root); } else { subWindowTwo.Minimize(false); } }