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

MAUI Blazor app how to disable scale and F12 dev tools? #5431

Closed
jim-jiang-github opened this issue Mar 19, 2022 · 5 comments
Closed

MAUI Blazor app how to disable scale and F12 dev tools? #5431

jim-jiang-github opened this issue Mar 19, 2022 · 5 comments

Comments

@jim-jiang-github
Copy link

Description

Is there any way to disable MAUI Blazor app F12 and scale? I can't find the option in 'BlazorWebView'.

Public API Changes

BlazorWebView blazorWebView=new BlazorWebView();
blazorWebView.DisableScale=true;
blazorWebView.DisableDevTools=true;

Can provide the setting properties like this?

Intended Use-Case

none

@jfversluis
Copy link
Member

I think as part of #5059 developer tools are disabled by default and you can easily enable them by adding a service to your app.

Not sure what you mean by scaling, but I assume that is that you can zoom the web interface? We have fixed that in the newest default templates to be disabled. If that's not what you mean, please open a new issue with a bit more detailed information. Thank you!

@jim-jiang-github
Copy link
Author

Yes, that is what I means, thanks.

@jim-jiang-github
Copy link
Author

jim-jiang-github commented Mar 26, 2022

I think as part of #5059 developer tools are disabled by default and you can easily enable them by adding a service to your app.

Not sure what you mean by scaling, but I assume that is that you can zoom the web interface? We have fixed that in the newest default templates to be disabled. If that's not what you mean, please open a new issue with a bit more detailed information. Thank you!

Animation

I already upgraded my vs2022 pre to 17.2.0 Preview 2.1. But also can reproduce this issue. Should I do any other step?

I can't find builder.Services.AddMauiBlazorWebView(); and builder.Services.AddBlazorWebViewDeveloperTools(); Is it still not released in preview14 or am I not upgrading properly?

@jfversluis
Copy link
Member

They will be released with the next version which is probably together with VS 17.2 Preview 3.

@jim-jiang-github
Copy link
Author

jim-jiang-github commented Apr 14, 2022

I already upgraded my vs2022 pre to 17.3, And now I can hide the DevTools, But also can zoom the view through my mouse.

@ghost ghost locked as resolved and limited conversation to collaborators May 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants