зеркало из https://github.com/DeGsoft/maui-linux.git
26 строки
689 B
C#
26 строки
689 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Xamarin.Forms;
|
|
using Xamarin.Forms.ControlGallery.WPF;
|
|
using Xamarin.Forms.Controls;
|
|
|
|
[assembly: Dependency(typeof(PlatformSpecificCoreGalleryFactory))]
|
|
|
|
namespace Xamarin.Forms.ControlGallery.WPF
|
|
{
|
|
public class PlatformSpecificCoreGalleryFactory : IPlatformSpecificCoreGalleryFactory
|
|
{
|
|
public string Title => "WPF Core Gallery";
|
|
|
|
public IEnumerable<(Func<Page> Create, string Title)> GetPages()
|
|
{
|
|
#if HAVE_OPENTK
|
|
yield return (() => new BasicOpenGLGallery(), "Basic OpenGL Gallery - Legacy");
|
|
yield return (() => new AdvancedOpenGLGallery(), "Advanced OpenGL Gallery - Legacy");
|
|
#else
|
|
return null;
|
|
#endif
|
|
}
|
|
}
|
|
}
|