언어 설정

Menu
Sites
Language
How can I retrieve device height and width in my native app

Responses

2 댓글
Siddharth Singh
If you intent to know the device screen resolution.......you can use GetBounds. When used with Frame it will give u the height and width of the frame .....equal to the screen resolution. And when used with Form it will give u the forms height & width (excluding header, footer and indicator). Rectangle rect = Frame.GetBounds(); //where,rect = {x,y,width,height} , x & y being the co-ordinates of the top left corner normally 0.
youngsik yoon
also if you want to get device info like screen size, dpi, bpp, etc..., use systeminfo api.