2019-05-16 22:07:36 +00:00
|
|
|
|
using System;
|
2019-05-22 22:59:15 +00:00
|
|
|
|
using LibVLCSharp.Forms.Shared;
|
2019-05-16 22:07:36 +00:00
|
|
|
|
using Xamarin.Forms.Platform.GTK;
|
|
|
|
|
|
|
|
|
|
namespace Aurora.gtk
|
|
|
|
|
{
|
|
|
|
|
class MainClass
|
|
|
|
|
{
|
|
|
|
|
[STAThread]
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
Gtk.Application.Init();
|
2019-05-22 22:59:15 +00:00
|
|
|
|
LibVLCSharpFormsRenderer.Init();
|
2019-12-23 04:58:29 +00:00
|
|
|
|
DLToolkit.Forms.Controls.FlowListView.Init();
|
|
|
|
|
|
2019-05-22 22:59:15 +00:00
|
|
|
|
// For some reason, Xamarin does not pick the LibVLCSharp.Form.Platforms.Gtk assembly as a renderer assembly.
|
|
|
|
|
// Add it manually.
|
2019-11-30 20:46:09 +00:00
|
|
|
|
|
|
|
|
|
//Also css doesn't work without adding the Xaml assembly
|
|
|
|
|
global::Xamarin.Forms.Forms.Init(new[] { typeof(LibVLCSharp.Forms.Platforms.GTK.VideoViewRenderer).Assembly, typeof(Xamarin.Forms.Xaml.ArrayExtension).Assembly });
|
2019-05-22 22:59:15 +00:00
|
|
|
|
|
2019-05-16 22:07:36 +00:00
|
|
|
|
var app = new App();
|
|
|
|
|
var window = new FormsWindow();
|
|
|
|
|
window.LoadApplication(app);
|
|
|
|
|
window.SetApplicationTitle("Aurora");
|
|
|
|
|
window.Show();
|
|
|
|
|
|
|
|
|
|
Gtk.Application.Run();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|