On Windows Phone 8.1, label's getRect method, which is supposed to return an object throws error: mainText. getRect() is not a function. (In 'mainText.getRect()', 'mainText.getRect' is undefined.
I use this method on Android successfully and I need it to calculate weight of a label.
Another method which is working on iOS is toImage method, but it's iOS only.
Please look at it.