Skip to content

aalex675/Forge.Forms

 
 

Repository files navigation

Forge.Forms

Build status NuGet

Introduction

With Forge.Forms you can create dynamic forms in WPF from classes or XML.

Join us at https://gitter.im/WPF-Forge for questions or general discussion.

To get started, check out our guide or follow the installation instructions below.

Warning

The library ships with dependencies to UI toolkits (Material and Mahapps.Metro). Because of this, it does not age well and is often a pain to install and manage via NuGet.

Please consider this project/repository to be experimental until a better and cleaner approach has been developed.

Installation

Install-Package Forge.Forms

For material theme, add this to App.xaml

<ResourceDictionary Source="pack://application:,,,/Forge.Forms;component/Themes/Material.xaml" />

DynamicForm control

If you want to use DynamicForm, import this namespace in XAML:

xmlns:forms="clr-namespace:Forge.Forms.Controls;assembly=Forge.Forms"

And use the control:

<forms:DynamicForm Model="{Binding Model}" />

Displaying dialogs

If you only need to show windows and dialogs, use the Show helper:

using Forge.Forms;

await Show.Dialog().For<Login>();
await Show.Window().For(new Alert("Hello world!"));

Note: if you are using Show.Dialog() without specifying a dialog identifier, it expects you to have a DialogHost in your XAML tree.

About

Dynamically generated forms and dialogs in WPF

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%