Ooui-tws-port/Ooui.Forms/Exports.cs

43 lines
1.8 KiB
C#
Raw Normal View History

2017-11-09 06:21:05 +00:00
using System;
using Ooui.Forms;
using Ooui.Forms.Renderers;
using Xamarin.Forms;
using Xamarin.Forms.Internals;
2017-11-09 07:57:04 +00:00
[assembly: Dependency (typeof (ResourcesProvider))]
2017-11-26 17:28:26 +00:00
[assembly: ExportRenderer (typeof (ActivityIndicator), typeof (ActivityIndicatorRenderer))]
[assembly: ExportRenderer (typeof (BoxView), typeof (BoxRenderer))]
2017-11-09 06:21:05 +00:00
[assembly: ExportRenderer (typeof (Button), typeof (ButtonRenderer))]
2017-11-26 18:32:55 +00:00
[assembly: ExportRenderer (typeof (DatePicker), typeof (DatePickerRenderer))]
2017-11-26 19:30:19 +00:00
[assembly: ExportRenderer (typeof (Editor), typeof (EditorRenderer))]
2017-11-26 16:12:28 +00:00
[assembly: ExportRenderer (typeof (Entry), typeof (EntryRenderer))]
2017-12-10 06:37:25 +00:00
[assembly: ExportRenderer (typeof (Frame), typeof (FrameRenderer))]
2017-12-11 01:51:05 +00:00
[assembly: ExportRenderer (typeof (Image), typeof (ImageRenderer))]
2017-11-10 00:09:48 +00:00
[assembly: ExportRenderer (typeof (Label), typeof (LabelRenderer))]
2017-11-26 17:43:52 +00:00
[assembly: ExportRenderer (typeof (ProgressBar), typeof (ProgressBarRenderer))]
[assembly: ExportRenderer (typeof (Switch), typeof (SwitchRenderer))]
2017-12-11 01:51:05 +00:00
[assembly: ExportImageSourceHandler (typeof (FileImageSource), typeof (FileImageSourceHandler))]
[assembly: ExportImageSourceHandler (typeof (StreamImageSource), typeof (StreamImagesourceHandler))]
[assembly: ExportImageSourceHandler (typeof (UriImageSource), typeof (ImageLoaderSourceHandler))]
2017-11-09 06:21:05 +00:00
namespace Ooui.Forms
{
2017-11-09 21:03:56 +00:00
[AttributeUsage (AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class ExportRendererAttribute : HandlerAttribute
{
public ExportRendererAttribute (Type handler, Type target)
: base (handler, target)
{
}
}
2017-12-11 01:51:05 +00:00
[AttributeUsage (AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class ExportImageSourceHandlerAttribute : HandlerAttribute
{
public ExportImageSourceHandlerAttribute (Type handler, Type target)
: base (handler, target)
{
}
}
2017-11-09 06:21:05 +00:00
}