Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bugthesystem/caliburn.metro
A library that combines MahApps.Metro with Caliburn.Micro for Metro UI styled WPF applications.
https://github.com/bugthesystem/caliburn.metro
autofac c-sharp caliburn-micro metro-ui nuget wpf wpf-mahapps
Last synced: 9 days ago
JSON representation
A library that combines MahApps.Metro with Caliburn.Micro for Metro UI styled WPF applications.
- Host: GitHub
- URL: https://github.com/bugthesystem/caliburn.metro
- Owner: bugthesystem
- License: unlicense
- Created: 2012-12-22T14:53:58.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2020-04-15T11:32:15.000Z (over 4 years ago)
- Last Synced: 2024-10-12T01:25:05.106Z (25 days ago)
- Topics: autofac, c-sharp, caliburn-micro, metro-ui, nuget, wpf, wpf-mahapps
- Language: C#
- Homepage:
- Size: 8.87 MB
- Stars: 111
- Watchers: 17
- Forks: 47
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: Licenses/avaloncontrolslibrary
Awesome Lists containing this project
README
Caliburn.Metro
==============Library combines [MahApps.Metro](http://mahapps.com/MahApps.Metro/) and [Caliburn.Micro](http://caliburnmicro.codeplex.com/) for Metro UI styled WPF applications
It provides [Caliburn.Micro](http://caliburnmicro.codeplex.com/) **Bootstrapper** and [MahApps.Metro](http://mahapps.com/MahApps.Metro/) **MetroWindow** integrated **WindowManager**. Also project contains [Autofac](http://code.google.com/p/autofac/) **Bootstrapper** integration.
* [Nuget Package - Caliburn.Metro](https://nuget.org/packages/Caliburn.Metro)
* [Nuget Package - Caliburn.Metro.Autofac](https://nuget.org/packages/Caliburn.Metro.Autofac)**Default Setup**
[Demo application](https://github.com/ziyasal/Caliburn.Metro/tree/master/Caliburn.Metro.Sample)
```csharp
//Basic AppBootstrapper
public class AppBootstrapper : CaliburnMetroCompositionBootstrapper
{}
//AppWindowManager with custom Main window
[Export(typeof(IWindowManager))]
public class AppWindowManager : MetroWindowManager
{
public override MetroWindow CreateCustomWindow(object view, bool windowIsView)
{
if (windowIsView)
{
return view as MainWindowContainer;
}return new MainWindowContainer
{
Content = view
};
}
}
```**Autofac Bootstrapper Setup**
[Demo application](https://github.com/ziyasal/Caliburn.Metro/tree/master/Caliburn.Metro.Autofac.Sample)
```csharp
//Autofac AppBootstrapper
public class AppBootstrapper : CaliburnMetroAutofacBootstrapper
{
protected override void ConfigureContainer(ContainerBuilder builder)
{
builder.RegisterType().As().SingleInstance();
var assembly = typeof(AppViewModel).Assembly;
builder.RegisterAssemblyTypes(assembly)
.Where(item => item.Name.EndsWith("ViewModel") && item.IsAbstract == false)
.AsSelf()
.SingleInstance();
}
}//AppWindowManager with custom Main window
public class AppWindowManager : MetroWindowManager
{
public override MetroWindow CreateCustomWindow(object view, bool windowIsView)
{
if (windowIsView)
{
return view as MainWindowContainer;
}
return new MainWindowContainer
{
Content = view
};
}
}
```**License**
Code and documentation are available according to the Unlicense (see [LICENSE](https://github.com/ziyasal/Caliburn.Metro/blob/master/UNLICENSE)).