Skip to content

Instantly share code, notes, and snippets.

View Andreas-Hjortland's full-sized avatar

Andreas Hjortland Andreas-Hjortland

View GitHub Profile
@Andreas-Hjortland
Andreas-Hjortland / AdminWebViewCompatible.cs
Last active February 25, 2020 08:49
A Web View control that will work on older windows versions as well as with windows 10 in administrator mode by falling back to using a WebBrowser control (IE). You use it the same way you are using `WebViewCompatible`, but I have added `ExampleUsage.xaml` to show how it can be used.
using System;
using System.Reflection;
using System.Security.Principal;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using Microsoft.Toolkit.UI.Controls;
using Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT;
using Microsoft.Toolkit.Wpf.UI.Controls;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Console;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using System.Threading;