Skip to content

belyansky/Caliburn.Light

 
 

Repository files navigation

Logo

Caliburn.Light

Caliburn.Light is a fork of Caliburn.Micro that

  • is modular/magic-free (does not include conventions)
  • does not switch to UI thread automatically for everything
  • integrates some ideas of Prism and MVVMLight
  • uses weak events (see Weakly)
  • supports ICommand out-of-the-box

Install

Caliburn.Light is available through NuGet:

Install-Package Caliburn.Light

Attached Properties

View-First

  • Bind.Model (use on root nodes like Window/UserControl/Page)
    Sets the DataContext and attaches the view to the view-model.
  • Bind.ModelWithoutContext (use inside of DataTemplate)
    Attaches the view to the view-model only.

ViewModel-First

  • View.Model
    Locates the view for the specified VM instance and injects it at the content site. Sets the VM as DataContext on the view.
  • View.Context
    To support multiple views over the same ViewModel, set this property on the injection site.

Behaviors

For attaching an action to a view element

  • CallMethodAction
    Calls a method on the specified object (supports parameters and coroutines). It also maintains the Enabled state of the target element based on a guard method/property.
  • InvokeCommandAction
    Executes a specified ICommand when invoked. It also maintains the Enabled state of the target element based on the CanExecute method of the command.

About

The magic-free Caliburn.Light, a powerful framework designed for building applications across current XAML platforms.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.8%
  • Other 0.2%