Skip to content

Instantly share code, notes, and snippets.

@NWoodsman
NWoodsman / WpfGuide.md
Last active August 30, 2024 04:50
A guide to understanding wpf.

WPF Guide

A high level guide to understanding and exploring WPF.

The intent of this guide is to provide a high level understanding of Microsoft's WPF.

As a mature technology, there are a decade-and-a-half of resources, how-tos, guides, and projects build on the technology; yet there is one critical, barely encountered theme absent from most documentation: the architecture.

Loosely defined, the "architecture" is the 'why" in "who,what,when,where,why."

@NWoodsman
NWoodsman / benchmark_ms_ImmutableList.cs
Created November 29, 2023 02:30
.Net ImmutableList<T> Benchmarks
const int SIZE = 1_000_000;
const int HALF_SIZE = 500_000;
[Benchmark]
public void ms_mutable_list()
{
var ms_list = new List<int>();
for (int i = 0; i < SIZE; i++) ms_list.Add(i);
}
@NWoodsman
NWoodsman / MainWindow.xaml
Last active April 15, 2022 02:40
Bug Behavior System.Windows.Media.Pen
<Window
x:Class="WpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:WpfApp1"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="MainWindow"
Width="800"
Height="450"