Category: C# / .Net / WPF
In Visual Studio (2022 in this example)| select File > New > Project.Select to create a new ASP.NET Core Web API ApplicationGive your project a nameUncheck the use of controllers, …
I have long been searching for a hard and fast way of navigating between views in an MVVM / WPF environment.For some time I have been using ways that either …
Some results of applying a C# / WPF implementation of the ant colony optimisation algorithm to the travelling salesman problem (TSP). My initial observation is that it finds fairly reasonable …
This post shows how performance improvements are obtainable by replacing the use of a traditional ‘for’ loop with Parallel.For, part of the Task Parallel Library (TPL).Step 1: Create a new …
Step 1: Create a new Visual Studio projectChoose the WCF installed template and create a new WCF Service Application:Step 2: Create your web service codeUpdate the IService1.cs and Service1.svc.cs classes …
Creating the WCF web service in Visual StudioIn this post I am using the WCF Web Service as an example, see this post for an example using using asmx:https://www.technical-recipes.com/2017/creating-and-consuming-a-web-service-in-c-net/A useful …
Some instructions on how to add/remove tab items within a WPF / MVVM setting.Step 1: Create a new WPF applicationStep 2: Add classes to implement ICommandRelayCommand.csEventRaiser.csEventArgs.csStep 3: Add the ViewModel …
Scenario: a WPF application which when the user presses a button goes off and runs something asynchronously, so that the user is still able to interact with the user interface …
See this StackOverflow answer for the original inspiration.Notable quote: “First of all DataGridTextColumn or any other supported dataGrid columns doesn’t lie in Visual tree of DataGrid. Hence, by default it …
A short post demonstrating how to use expander controls in WPF, to create a list of collapsible / expandable menu items in your C# WPF applicationCreate a new Visual Studio …