Josh Fischer - .NET and C# Consultant

.NET, C#, Azure, WinUI, Wpf, Uno, Sql, Visual Studio, Webassembly

I wanted to change the default classes that were generated when adding files to Visual Studio projects. Historically this is done by updating the template file. However, what was generated didn't match the template file. It turns out that the editor config settings will override the template. Just

PathIconSource Instances Are Not Reusable

- Posted in WinUI by

I recently had the need to use PathIconSource and IconSourceElement. It seemed straightforward enough, so I added the first image to my app without any problems. After adding a few more images, I needed to reuse one I had already added. Suddenly my app started crashing with a very strange error

Fix WinUI App Crashes Upon Startup

- Posted in WinUI by

If your WinUI application is crashing immediately upon startup while running through Visual Studio, there may be a quick fix/workaround you can use. Simply go to Tools menu in Visual Studio and navigate to: Tools -> Options -> Debugging -> XAML Hot Reload and uncheck the Enable in-app toolbar