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

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

            var testingTarget = FlexLayout.DownCast(view);

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <FlexLayout>(testingTarget, "Should return FlexLayout instance.");

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