Page 1 of 1

Getting Page Width

PostPosted: 01 May 2018 22:36
by dfields
I need to determine the width of a page in the mobile version of my application in order to resize images on the page. I am not getting the correct values using WebApplication.FormWidth. Your mobile components must have an event or property that I can use to determine form width at runtime. Can you point me to something I can work with?

Re: Getting Page Width

PostPosted: 02 May 2018 12:00
by Jorge Sousa
Hello

Your mobile components must have an event or property that I can use to determine form width at runtime


No they don't have this property

Why is WebApplication.FormWidth not working for you?

Re: Getting Page Width

PostPosted: 02 May 2018 19:41
by dfields
For some unknown reason, the width is reported incorrectly in the form's OnCreate event. I have to ad a timer with a half-second delay to get the correct value after the form has been rendered.

I was hoping that the Page or Content controls from your mobile tools would have a value that could be read without using the timer, in another event.