Hello,
how I can access the popup size property. programmatically and change the size.x to screen width.
You can access the size by the PopupPage.Size
, before you popup your page.
And you can change the size.x to screen width, you can do it by popup.Size=new Size(this.Width, 500);
Please refer to the following code. I tested it in the button click's background code.
private async void OnCounterClicked(object sender, EventArgs e)
{
var popup = new PopUpPage();
Size OrignalSize = popup.Size;
popup.Size=new Size(this.Width, 500);
var result = await this.ShowPopupAsync(popup);
}
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.