Category : wpf

My application WPF .net core 3.1 run in win10 home and around two or three days, it was closed and didn’t catch any exception. I had put exception handler in app void App_Startup(object sender, StartupEventArgs e) { Application.Current.DispatcherUnhandledException += Current_DispatcherUnhandledException; AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; } private void Current_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e) { string error = "An ..

Read more

C# WPF Desktop app – Failing to disable Maximize even when ResizeMode is CanMinimize in custom window control. Image is of desired result: Tried setting ResizeMode="CanMinimize" in XAML in upper declaration of the control. Tried even putting in constructor of control: public MaterialWindow() { WindowChrome.SetWindowChrome(this, new WindowChrome() { CaptionHeight = 32, NonClientFrameEdges = NonClientFrameEdges.None, ResizeBorderThickness ..

Read more

MS Edge runtime: 94.0.992.31 Nuget package : Microsoft.Web.WebView2 1.0.992.28 We have two solutions : Managed C++ app and Wpf GUI library. In the Managed C++ we consume wpf’s views. Everything was OK while we were using old System.Windows.Controls.WebBrowser. No crashes. But, well, rendered HTML becomes more complex and harder to be properly rendered in old ..

Read more