コード例 #1
0
        public void FlexLayoutGetFlexGrow()
        {
            tlog.Debug(tag, $"FlexLayoutGetFlexGrow START");

            View view = new View()
            {
                Size            = new Size(400, 400),
                BackgroundColor = Color.White,
                Layout          = new FlexLayout()
                {
                    Direction = FlexLayout.FlexDirection.Column,
                }
            };

            FlexLayout.SetFlexGrow(view, 0.2f);
            var result = FlexLayout.GetFlexGrow(view);

            Assert.AreEqual(0.2f, result, "should be equal!");

            view.Dispose();
            tlog.Debug(tag, $"FlexLayoutGetFlexGrow END (OK)");
        }