Hello,
Welcome to Microsoft Q&A!
Why this difference?
It is because the screen size(width) is different between device and emulator , here you should not set Absolute value
on the XConstraint
, we could use Relative value
instead .
<yummy:PancakeView
RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Constant=-5}"
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.