Tag: WPF
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 …
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 …
For the Java equivalent see this link:https://www.technical-recipes.com/2017/applying-the-2-opt-algorithm-to-traveling-salesman-problems-in-java/For the C++ equivalent see this link:https://www.technical-recipes.com/2012/applying-c-implementations-of-2-opt-to-travelling-salesman-problems/This post demonstrates how to apply the 2-opt algorithm to a number of standard test problems in C# …
Some instructions on how to create and display a hierarchical data structure in WPF by using HierarchicalDataTemplate with TreeViewVisual Studio 2019 project downloadable from here.Stack Overflow linkStep 1: Create a …
Some practical instructions on how to include resource files to your Visual Studio C# WPF project that are not source code.Such non-code files can include binary data, text files, media …
Example scenario: User clicks the mouse in a WPF application – how do we ‘listen’ to that event in order to trigger and handle an event in the main code? …
Some instruction on how to embed a PowerPoint presentation within a WPF application by converting the file to a XPS format and displaying this using DocumentViewer.Step 1: Create a WPF …
Some instructions on how to use the Mediator design pattern as a means of allowing communication between ViewModel classes in your MVVM / WPF application.In this example I use the …
Some brief instructions on getting started with using the Chromium Web Browser in WPF.Step 1: Create a new WPF project Step 2: Obtain the CefSharp packages using NuGetLink for the …