WBP Framework is based on the ABP Framework & Prism & .NET Community Toolkit to create modern wpf applications.
- Start new WPF project
- Install Umi.Wbp nuget:
Install-Package Umi.Wbp
- Create application module:
[DependsOn(typeof(WbpModule))]
public class DemoModule : AbpModule
{
}
- Edit MainWindow.xaml.cs to following:
public partial class MainWindow : Window, IRouterHost
{
public MainWindow(){
InitializeComponent();
}
public ICollection<RouterView> RouterViews => new List<RouterView> { };
}
- Edit App.xaml to following:
<wbp:WbpApplication x:TypeArguments="local:DemoModule,local:MainWindow" x:Class="Umi.Wbp.Demo.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:wbp="clr-namespace:Umi.Wbp;assembly=Umi.Wbp"
xmlns:local="clr-namespace:Umi.Wbp.Demo">
<Application.Resources>
</Application.Resources>
</wbp:WbpApplication>
- Edit App.xaml.cs to following:
public partial class App
{
}
- Enjoy Wbp!
TODO