Set the App window size

Javango 10 Reputation points
2023-01-12T12:19:28.6+00:00

Hello,

just made my first app on .NET MAUI.

I would like to resize the app window size and found a solution here:

https://www.youtube.com/watch?v=o35BEuIC-uA (at 1min, 53sec)

But the compiler tells me that the Window has no Element called Height or Width. (window.Height)

Any Ideas?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,853 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Lloyd Sheen 1,481 Reputation points
    2023-01-12T12:45:17.5066667+00:00

    There are two properties HeightRequest and WidthRequest that you should use.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.