CodeFirstWPF 0.4.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package CodeFirstWPF --version 0.4.0
                    
NuGet\Install-Package CodeFirstWPF -Version 0.4.0
                    
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="CodeFirstWPF" Version="0.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeFirstWPF" Version="0.4.0" />
                    
Directory.Packages.props
<PackageReference Include="CodeFirstWPF" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CodeFirstWPF --version 0.4.0
                    
#r "nuget: CodeFirstWPF, 0.4.0"
                    
#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.
#:package CodeFirstWPF@0.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CodeFirstWPF&version=0.4.0
                    
Install as a Cake Addin
#tool nuget:?package=CodeFirstWPF&version=0.4.0
                    
Install as a Cake Tool

CodeFirstWPF

Fluent extensions for code first WPF

Usage

new Application().Run(
    new Window()
    .WithContent(
        new Grid()
        .WithColumnDefinition(
            new ColumnDefinition()
            .WithWidth(new GridLength(1, GridUnitType.Star))
        )
        .WithRowDefinition(
            new RowDefinition()
            .WithHeight(GridLength.Auto)
        )
        .WithRowDefinition(
            new RowDefinition()
            .WithHeight(new GridLength(1, GridUnitType.Star))
        )
        .WithChild(
            new TextBlock()
            .WithText("Hello World!")
            .WithColumn(0)
            .WithRow(0)
        )
        .WithChild(
            new Button()
            .WithContent("Click me!")
            .WithClick((sender, e) => {
                Console.WriteLine("I was clicked!");
            })
            .WithColumn(0)
            .WithRow(1)
        )
    )
);
Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net9.0-windows was computed.  net10.0-windows was computed. 
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.7.2

    • No dependencies.
  • net6.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.0 155 8/13/2024
0.4.0 126 8/7/2024
0.3.0 377 2/11/2023
0.2.0 311 2/4/2023