Skip to content

How to get "real" control size on Android? #17958

Answered by maxkatz6
Supheria asked this question in Q&A
Discussion options

You must be logged in to vote

You need to get render scaling.

var topLevel = TopLevel.GetTopLevel(control);
var scaling = topLevel.RenderScale;

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Supheria
Comment options

Answer selected by Supheria
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants