DependencyPropertyGenerator 0.3.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package DependencyPropertyGenerator --version 0.3.2                
NuGet\Install-Package DependencyPropertyGenerator -Version 0.3.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DependencyPropertyGenerator" Version="0.3.2">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DependencyPropertyGenerator --version 0.3.2                
#r "nuget: DependencyPropertyGenerator, 0.3.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DependencyPropertyGenerator as a Cake Addin
#addin nuget:?package=DependencyPropertyGenerator&version=0.3.2

// Install DependencyPropertyGenerator as a Cake Tool
#tool nuget:?package=DependencyPropertyGenerator&version=0.3.2                

DependencyPropertyGenerator

Dependency property source generator for WPF/UWP/WinUI/Uno platforms.

Dependency property

[DependencyProperty("IsSpinning", typeof(bool))]
public partial class MainWindow
{
}

will generate:

public static readonly DependencyProperty IsSpinningProperty =
    DependencyProperty.Register(
        "IsSpinning",
         typeof(bool),
         typeof(MainWindow));

public bool IsSpinning
{
    get => (bool)GetValue(IsSpinningProperty);
    set => SetValue(IsSpinningProperty, value);
}

Attached Dependency Property

[AttachedDependencyProperty("IsBubbleSource", typeof(bool))]
public partial static class AquariumObject2
{
}

will generate:

public static readonly DependencyProperty IsBubbleSourceProperty =
    DependencyProperty.RegisterAttached(
        "IsBubbleSource",
        typeof(bool),
        typeof(AquariumObject2));
  
public static void SetIsBubbleSource(UIElement element, bool value)
{
    element.SetValue(IsBubbleSourceProperty, value);
}

public static bool GetIsBubbleSource(UIElement element)
{
    return (bool)element.GetValue(IsBubbleSourceProperty);
}
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (5)

Showing the top 5 popular GitHub repositories that depend on DependencyPropertyGenerator:

Repository Stars
helix-toolkit/helix-toolkit
Helix Toolkit is a collection of 3D components for .NET.
JasonWei512/EnergyStarX
🔋 Improve your Windows 11 device's battery life. A WinUI 3 GUI for https://github.com/imbushuo/EnergyStar.
GoldenPotato137/PotatoVN
一款Visual Novel管理软件
HavenDV/H.NotifyIcon
TrayIcon for WPF/WinUI/Uno/MAUI
IviriusCommunity/Rebound
Windows 11 done right.
Version Downloads Last updated
1.5.0 1,126 1/12/2025
1.5.0-beta.2 2,120 7/23/2024
1.5.0-beta.1 2,505 1/16/2024
1.4.0 7,499 1/5/2024
1.4.0-alpha.3 307 12/4/2023
1.4.0-alpha.2 91 12/1/2023
1.4.0-alpha.1 79 11/30/2023
1.3.3 3,617 11/7/2023
1.3.2 2,203 9/23/2023
1.3.1 487 9/9/2023
1.3.0 718 9/1/2023
1.2.12 213 8/29/2023
1.2.11 148 8/29/2023
1.2.8 186 8/28/2023
1.2.7 182 8/27/2023
1.2.6 162 8/25/2023
1.2.5 2,284 3/24/2023
1.2.4 781 3/14/2023
1.2.3 662 3/11/2023
1.2.2 314 3/10/2023
1.2.1 268 3/9/2023
1.2.0 247 3/8/2023
1.1.7 251 3/6/2023
1.1.5 412 2/14/2023
1.1.4 417 2/2/2023
1.1.3 292 2/2/2023
1.1.2 633 1/28/2023
1.1.1 339 1/27/2023
1.1.0 318 1/27/2023
1.0.7 348 1/18/2023
1.0.6 457 1/9/2023
1.0.5 294 1/9/2023
1.0.3 2,569 8/26/2022
1.0.2 405 8/26/2022
1.0.1 461 8/23/2022
1.0.0 614 8/22/2022
0.53.0 651 8/13/2022
0.52.2 773 7/29/2022
0.52.1 455 7/29/2022
0.52.0 437 7/28/2022
0.51.1 449 7/28/2022
0.51.0 439 7/27/2022
0.50.1 451 7/26/2022
0.50.0 453 7/26/2022
0.49.0 410 7/25/2022
0.48.1 458 7/19/2022
0.48.0 460 7/19/2022
0.47.0 421 7/18/2022
0.46.0 467 7/18/2022
0.45.0 462 7/18/2022
0.44.0 435 7/18/2022
0.43.1 486 7/18/2022
0.43.0 455 7/18/2022
0.42.0 512 7/17/2022
0.41.0 483 7/17/2022
0.40.0 466 7/17/2022
0.39.0 472 7/16/2022
0.38.0 438 7/16/2022
0.37.0 467 7/13/2022
0.36.3 561 7/9/2022
0.36.2 433 7/9/2022
0.36.1 457 7/9/2022
0.36.0 445 7/9/2022
0.35.1 437 7/8/2022
0.35.0 465 7/8/2022
0.34.3 485 7/1/2022
0.34.2 445 7/1/2022
0.34.1 469 6/30/2022
0.34.0 415 6/30/2022
0.33.0 467 6/29/2022
0.32.1 497 6/24/2022
0.32.0 453 6/24/2022
0.31.0 473 6/24/2022
0.29.0 454 6/24/2022
0.28.1 454 6/24/2022
0.28.0 464 6/23/2022
0.27.5 492 6/23/2022
0.27.4 476 6/23/2022
0.27.3 472 6/23/2022
0.27.2 449 6/23/2022
0.27.1 473 6/23/2022
0.27.0 449 6/23/2022
0.26.1 434 6/23/2022
0.26.0 465 6/23/2022
0.25.0 469 6/22/2022
0.24.0 463 6/22/2022
0.23.0 474 6/22/2022
0.22.0 422 6/22/2022
0.21.1 434 6/22/2022
0.21.0 435 6/22/2022
0.20.0 427 6/22/2022
0.19.1 462 6/21/2022
0.19.0 463 6/21/2022
0.18.0 442 6/21/2022
0.16.5 451 6/20/2022
0.16.4 431 6/20/2022
0.16.2 413 6/20/2022
0.16.1 432 6/20/2022
0.16.0 457 6/20/2022
0.15.1 480 6/20/2022
0.15.0 464 6/20/2022
0.14.0 464 6/20/2022
0.12.0 471 6/20/2022
0.10.0 444 6/20/2022
0.9.0 439 6/20/2022
0.8.0 468 6/20/2022
0.7.3 468 6/19/2022
0.7.2 474 6/19/2022
0.7.1 445 6/19/2022
0.7.0 399 6/19/2022
0.6.0 444 6/19/2022
0.3.3 445 6/19/2022
0.3.2 478 6/19/2022
0.0.0-beta.274 84 8/19/2024
0.0.0-beta.273 80 8/19/2024
0.0.0-beta.272 71 8/12/2024
0.0.0-beta.271 47 8/5/2024
0.0.0-beta.270 60 7/29/2024
0.0.0-beta.269 62 7/23/2024

⭐ Last 10 features:
Released first version with WPF and DependencyAttrubute support.
Initial commit.
🐞 Last 10 bug fixes:
Added generate-build-number: false.
Fixed tests.
Fixed initial project settings.