Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programatically see if screen is in mobile mode #17

Open
americanslon opened this issue Jan 28, 2020 · 2 comments
Open

Programatically see if screen is in mobile mode #17

americanslon opened this issue Jan 28, 2020 · 2 comments

Comments

@americanslon
Copy link

americanslon commented Jan 28, 2020

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

@DerekChasse
Copy link
Owner

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

@americanslon
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants