LightUno 1.0.0
dotnet add package LightUno --version 1.0.0
NuGet\Install-Package LightUno -Version 1.0.0
<PackageReference Include="LightUno" Version="1.0.0" />
paket add LightUno --version 1.0.0
#r "nuget: LightUno, 1.0.0"
// Install LightUno as a Cake Addin #addin nuget:?package=LightUno&version=1.0.0 // Install LightUno as a Cake Tool #tool nuget:?package=LightUno&version=1.0.0
Pequeño framework MVVM apenas en construcción para Uno Platform
Uso rápido
protected override void OnLaunched(LaunchActivatedEventArgs e)
{
new AppRoutes(LightUno.Application.RoutingService); // crea la clase approutes
new AppDependencies(LightUno.Application.Container); // crea la clase appdependencies
// ...
// Cambiar la forma de obtener la pagina principal de la app
var defaultview = LightUno.Application.RoutingService.DefaultView;
rootFrame.Navigate(defaultview, e.Arguments);
}
AppDependencies:
Son todos los servicios que generes para tu app, usando el patron de diseño IoC
AppRoutes:
Son todas las rutas que tendra tu app, cada ruta enlaza una vista y un viewmodel.
En C# cada página debe herdad de [ViewBase, IViewBase]
public sealed partial class MainPage : ViewBase, IViewBase
En XAML cambiar de Page a
<Views:ViewBase xmlns:Views="using:LightUno.Views"
Si completaste correctamente todos los pasos, felicidades! ahora puedes hacer uso de MVVM en el proyecto.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. monoandroid10.0 is compatible. monoandroid11.0 is compatible. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap10.0.17763 is compatible. |
Xamarin.iOS | xamarinios was computed. xamarinios10 is compatible. |
Xamarin.Mac | xamarinmac was computed. xamarinmac20 is compatible. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- LightInject (>= 6.4.0)
- Uno.UI (>= 3.3.0)
-
MonoAndroid 10.0
- LightInject (>= 6.4.0)
- Uno.UI (>= 3.3.0)
-
MonoAndroid 11.0
- LightInject (>= 6.4.0)
- Uno.UI (>= 3.3.0)
-
UAP 10.0.17763
- LightInject (>= 6.4.0)
- Uno.UI (>= 3.3.0)
-
Xamarin.iOS 1.0
- LightInject (>= 6.4.0)
- Uno.UI (>= 3.3.0)
-
Xamarin.Mac 2.0
- LightInject (>= 6.4.0)
- Uno.UI (>= 3.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 505 | 12/8/2020 |