Pinned Loading
-
Maintain aspect ratio when resizing.
Maintain aspect ratio when resizing. 1public static (double Width, double Height) Resize(double srcWidth, double srcHeight, double maxWidth, double maxHeight)
2{3// https://stackoverflow.com/a/14731922/6403264//Conserve aspect ratio of the original region. Useful when shrinking/enlarging images to fit into a certain area.5var ratio = Math.Min(maxWidth / srcWidth, maxHeight / srcHeight);
-
BiasFunction
BiasFunction 1public class BiasFunction
2{3/// <summary>4///5/// </summary> -
Inversion Of Control
Inversion Of Control 1//using LightInject;2using System;
3using System.Collections.Generic;
4using System.ComponentModel.Design;
5using System.Linq;
-
Count up then down, repeat
Count up then down, repeat 1using System;
2using System.Linq;
3using System.Collections.Generic;
45public static class Program
-
Screens in WPF without WinForms
Screens in WPF without WinForms 1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Runtime.InteropServices;
5using System.Text;
-
Mime types filterable by extension, ...
Mime types filterable by extension, perceived type, and content type. 1using System.Collections.Generic;
2using System.Linq;
34namespace Toolset
5{
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.



