Skip to content

Instantly share code, notes, and snippets.

View GataullinRR's full-sized avatar
🎯
Focusing

Radmir GataullinRR

🎯
Focusing
View GitHub Profile
using System;
using System.Globalization;
using System.Linq;
using System.Text;
string GenerateIsMoreThanRegexp(double value, bool isInclusive = true, bool isComma = false, int minDecimals = 2, int maxDecimals = 3)
{
if (minDecimals < 1 || maxDecimals < minDecimals) // So the dot must be present
{
throw new NotSupportedException();
@GataullinRR
GataullinRR / MarginSetter.cs
Created May 11, 2018 10:54 — forked from angularsen/MarginSetter.cs
WPF - Automatic horizontal or vertical spacing in StackPanel and other list like panels
using System.Windows;
using System.Windows.Controls;
using JetBrains.Annotations;
namespace Foo
{
public class MarginSetter
{
private static Thickness GetLastItemMargin(Panel obj)
{