Пример #1
0
            public override bool CreateTopBorderView(View topView)
            {
                if (topView == null)
                {
                    return(false);
                }
                topView.Layout = new LinearLayout()
                {
                    LinearOrientation = LinearLayout.Orientation.Horizontal,
                    LinearAlignment   = LinearLayout.Alignment.CenterVertical,
                    CellPadding       = new Size2D(20, 20),
                };
                title = new TextLabel()
                {
                    Text = "CustomBorder",
                };

                var button = new Button()
                {
                    Text = "AlwaysOnTop",
                };

                button.Clicked += (s, e) =>
                {
                    BorderWindow.EnableFloatingMode(true);
                };
                topView.Add(title);
                topView.Add(button);
                return(true);
            }