Eleve 0.3.1
See the version list below for details.
dotnet add package Eleve --version 0.3.1
NuGet\Install-Package Eleve -Version 0.3.1
<PackageReference Include="Eleve" Version="0.3.1" />
paket add Eleve --version 0.3.1
#r "nuget: Eleve, 0.3.1"
// Install Eleve as a Cake Addin #addin nuget:?package=Eleve&version=0.3.1 // Install Eleve as a Cake Tool #tool nuget:?package=Eleve&version=0.3.1
Eleve
Livet Based OreOre Framework
(参考にして自分でアプリケーションが作りやすそうなフレームワークを作ってみましたの意)
Description
MVVM is so great. But so difficult and complex to build application.
Eleve is WPF Framwork not fussy about MVVM.
Livet
Livet is a very powerful MVVM Infrastructure for WPF
Install
ProjectTemplate
Files
EleveSample
├── Actions
│ ├── EleveSample
│ │ ├── EleveSampleActionBase.cs
│ │ ├── Initialize.cs
│ │ └── OpenItemSelector.cs
│ └── ItemSelector
│ ├── Initialize.cs
│ ├── ItemSelectorActionBase.cs
│ └── Notify.cs
├── Models
│ └── Person.cs
├── ViewModels
│ ├── EleveSampleViewModel.cs
│ └── ItemSelectorViewModel.cs
└── Views
├── EleveSampleView.xaml
├── EleveSampleView.xaml.cs
├── ItemSelectorView.xaml
└── ItemSelectorView.xaml.cs
Call Action
Determined by ViewModel's name, namespace and Action name.
<Button Content="Open">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<ev:Execute Action="OpenItemSelector" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
Open Window
Open ItemSelectorView with param and callback.
OpenDialogWindow<ItemSelectorView>(param, (type, ret) => {
ViewModel.Message = type.ToString() + " - " + ret;
});
Open ItemSelectorView with param and await.
WindowCloseResult ret = await OpenDialogWindowAsync<ItemSelectorView>(param);
ViewModel.Message = ret.Type.ToString() + " - " + ret.Result;
Close ItemSlectorView and notify param.
CloseWindow(WindowCloseType.OK, ViewModel.ID);
ThreadMode
Default mode is Foreground (in UI Thread). You can change to Background by class attribute.
[ThreadMode(ThreadMode.Background)]
public class Initialize : EleveSampleActionBase
{
If you want to change default mode from Foreground to Background in app, add setting to App.config.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
・・・
<appSettings>
<add key= "Eleve.ThreadMode" value="Background"/>
</appSettings>
・・・
</configuration>
License
zlib/libpngライセンスで提供しています。zlib/libpng ライセンスでは、ライブラリとしての利用に留めるのであれば再配布時にも著作権表示などの義務はありません。しかし、ソースコードを改変しての再配布にはその旨の明示が義務付けられます。
Eleve include Livet's code.
TODO
- Broken English
- Is License ok?
- Input Validation
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has 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.
beta version