![]() ![]() Customizing the control is pretty simple. With this in place, you can drag the WebView2 control onto the WinForms designer in Visual Studio. My project file references the 2 NuGet package. I chose to make a WinForms project, but could equally have used WPF. It's essentially an embeddable Microsoft Edge, which was perfect for my needs. Of course, WinForms and WPF have always had "web" UI controls, but these have been historically based on Internet Explorer, making them unsuitable for browsing modern websites. ![]() So I decided to see how hard it would be to make my own very simple web browser. I also want do do things like defaulting to a higher zoom setting than I normally use, and for the browser address bar to show the URL in a much bigger font size. It's a real pain to use your regular browser to do this as it often contains many visual elements such as extension icons, favourite bars and search history that you need to edit out when producing a video for sharing online. ![]() If you're wondering why on earth I'd want to do this, part of the reason is that I often find myself recording video presentations that include showing a web browser. In this post I want to share how easy it is to build your own web browser with the WebView2 control. I pray that peace will come soon, and encourage all who are reading this to find practical ways of supporting Ukrainians at this time. For the last five years I have had the privilege of working daily with several teams of developers based in Kiev, and it is heartbreaking to see the havoc that is being wreaked on their nation right now. First of all, I want to express my support for my friends and colleagues in Ukraine. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |