예제 #1
0
        public SizeRequest GetDesiredSize(double widthConstraint, double heightConstraint)
        {
            if (!_nativeViewLoaded)
            {
                return(new SizeRequest(Size.Zero));
            }

            var size = ViewHandler.GetDesiredSize(widthConstraint, heightConstraint);

            return(new SizeRequest(size, size));
        }
예제 #2
0
        public SizeRequest GetDesiredSize(double widthConstraint, double heightConstraint)
        {
            var size = ViewHandler.GetDesiredSize(widthConstraint, heightConstraint);

            return(new SizeRequest(size, size));
        }
예제 #3
0
 public SizeRequest GetDesiredSize(int widthConstraint, int heightConstraint)
 {
     return(ViewHandler.GetDesiredSize(widthConstraint, heightConstraint));
 }