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

65 lines
3.1 KiB
C#
Raw Normal View History

2017-11-09 06:21:05 +00:00
using System;
using Ooui.Forms;
using Ooui.Forms.Cells;
2017-11-09 06:21:05 +00:00
using Ooui.Forms.Renderers;
using Xamarin.Forms;
[assembly: Dependency (typeof (ResourcesProvider))]
[assembly: ExportRenderer (typeof (ActivityIndicator), typeof (ActivityIndicatorRenderer))]
[assembly: ExportRenderer (typeof (BoxView), typeof (BoxRenderer))]
[assembly: ExportRenderer (typeof (Button), typeof (ButtonRenderer))]
[assembly: ExportRenderer (typeof (DatePicker), typeof (DatePickerRenderer))]
[assembly: ExportRenderer (typeof (Editor), typeof (EditorRenderer))]
[assembly: ExportRenderer (typeof (Entry), typeof (EntryRenderer))]
[assembly: ExportRenderer (typeof (Frame), typeof (FrameRenderer))]
[assembly: ExportRenderer (typeof (Image), typeof (ImageRenderer))]
[assembly: ExportRenderer (typeof (Label), typeof (LabelRenderer))]
[assembly: ExportRenderer (typeof (LinkLabel), typeof (LinkLabelRenderer))]
[assembly: ExportRenderer (typeof (LinkView), typeof (LinkViewRenderer))]
2018-04-16 02:29:58 +00:00
[assembly: ExportRenderer (typeof (Picker), typeof (PickerRenderer))]
[assembly: ExportRenderer (typeof (ListView), typeof (ListViewRenderer))]
[assembly: ExportRenderer (typeof (ProgressBar), typeof (ProgressBarRenderer))]
2018-04-16 02:29:58 +00:00
[assembly: ExportRenderer (typeof (ScrollView), typeof (ScrollViewRenderer))]
[assembly: ExportRenderer (typeof (SearchBar), typeof (SearchBarRenderer))]
2018-04-16 02:29:58 +00:00
[assembly: ExportRenderer (typeof (Slider), typeof (SliderRenderer))]
[assembly: ExportRenderer (typeof (Switch), typeof (SwitchRenderer))]
[assembly: ExportRenderer (typeof (TimePicker), typeof (TimePickerRenderer))]
2018-04-16 02:29:58 +00:00
[assembly: ExportRenderer (typeof (WebView), typeof (WebViewRenderer))]
[assembly: ExportImageSourceHandler (typeof (FileImageSource), typeof (FileImageSourceHandler))]
[assembly: ExportImageSourceHandler (typeof (StreamImageSource), typeof (StreamImagesourceHandler))]
[assembly: ExportImageSourceHandler (typeof (UriImageSource), typeof (ImageLoaderSourceHandler))]
2018-04-16 02:29:58 +00:00
[assembly: ExportCell (typeof (Cell), typeof (CellRenderer))]
[assembly: ExportCell (typeof (EntryCell), typeof (EntryCellRenderer))]
[assembly: ExportCell (typeof (ImageCell), typeof (ImageCellRenderer))]
[assembly: ExportCell (typeof (SwitchCell), typeof (SwitchCellRenderer))]
[assembly: ExportCell (typeof (TextCell), typeof (TextCellRenderer))]
[assembly: ExportCell (typeof (ViewCell), typeof (ViewCellRenderer))]
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
2018-04-16 02:29:58 +00:00
[AttributeUsage (AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class ExportCellAttribute : HandlerAttribute
{
2018-04-16 02:29:58 +00:00
public ExportCellAttribute (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
}