Flexor icon indicating copy to clipboard operation
Flexor copied to clipboard

Programatically see if screen is in mobile mode

Open americanslon opened this issue 6 years ago • 2 comments

I don't suppose there is a way to use IsMobile etc. from "code behind" to find out the current viewfinder mode?

americanslon avatar Jan 28 '20 20:01 americanslon

Flexor isn't intended to programatically access media widths in that fashion. The IsMobile etc methods are more declarative in nature.

After a quick search looks like Ed Charbeneau has a library which could provide the functionality you're after.

https://github.com/EdCharbeneau/BlazorSize

DerekChasse avatar Jan 30 '20 23:01 DerekChasse

Yeah I kinda figured. The whole point of me asking was to avoid another library. I just made my own little service.

americanslon avatar Jan 31 '20 00:01 americanslon