Skip to content

Instantly share code, notes, and snippets.

View bugproof's full-sized avatar
🌴
working on personal stuff, death to slavery

bugproof

🌴
working on personal stuff, death to slavery
  • Poland
View GitHub Profile
@bugproof
bugproof / Read-only dependency property (ReSharper and Rider snippet).txt
Last active June 11, 2019 16:42
Read-only dependency property WPF snippet
private static readonly $dependencyProperty$Key $propertyName$PropertyKey = $dependencyProperty$.RegisterReadOnly(
nameof($propertyName$), typeof($propertyType$), typeof($containingType$), new PropertyMetadata(default($propertyType$)));
public static readonly $dependencyProperty$ $propertyName$Property = $propertyName$PropertyKey.DependencyProperty;
public $propertyType$ $propertyName$
{
get => ($propertyType$) GetValue($propertyName$Property);
protected set => SetValue($propertyName$PropertyKey, value);
}
@bugproof
bugproof / what to use for desktop app.md
Last active March 7, 2020 15:55
What to use for desktop app

BEST