Category: C# / .Net / WPF
A previous post described how to navigate between views in a WPF / MVVM project using the Mediator pattern as a means of passing data around and/or identifying the screen …
A summary of SOLID Principles as implemented in the C# language.Useful link: https://code-maze.com/solid-principles/1. Single Responsibility PrincipleEvery class should have only one responsibility. Consider the class PersonalDetails whose responsibility is to …
In a recent project I was interested in Dragging shapes with the mouse in a WPF / MVVM Visual Studio project.This post contains an example on how to drag a …
See this link for very similar instructions:https://www.typescriptlang.org/docs/handbook/asp-net-core.htmlStep 1: Create a new Asp.Net Core projectSelect Empty project:Click OK.Step 2: Add Microsoft.AspNetCore.StaticFiles via NuGetRight click on Dependencies and select Manage NuGet Packages:Select …
Some instructions that distill how one may get started with using TypeScript in Visual Studio Code.Step 1: Set up your development environmentDownload and run the installer for Visual Studio Code …
Basically the same instructions as given in the Microsoft site, which I attempt to make yet simpler for the beginner to get started.Another useful link:https://xunit.net/docs/getting-started/netfx/visual-studio#write-first-testsStep 1: Create a directory for …
An example of not only how to use CefSharp.WinForms.ChromiumWebBrowser version 67 in a Visual Studio WPF application, but to hide the default context menu that show up on right-clicking the browser area. …
Useful StackOverflow link:https://stackoverflow.com/questions/28496809/wpf-flexible-tabcontrol-headerStep 1: Create a new WPF applicationStep 2: Create an example adjustable window with tab itemsUpdate the MainWindow.xaml to create a grid with a column section containing the …
First things first, credit where it’s due: the StackOverflow link I eventually found that enabled me to solve this problem:https://stackoverflow.com/questions/3339051/wrapping-text-around-an-image-or-linking-two-textblocks-in-c-sharp-wpfThe trick is not use use a TextBlock as conventional wisdom …
A quick demonstration on how to control access to files in real-time.As described in the Microsoft documentation, the control access to a file can be added or removed by obtaining …