Class ViewRenderer<TElement, TNativeElement>
Implements
System.ComponentModel.INotifyPropertyChanged
Xamarin.Forms.IRegisterable
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Goui.Forms.Renderers
Assembly: Goui.Forms.dll
Syntax
public class ViewRenderer<TElement, TNativeElement> : VisualElementRenderer<TElement>, INotifyPropertyChanged, IVisualElementRenderer, IRegisterable, IDisposable where TElement : View where TNativeElement : Element
Type Parameters
Name | Description |
---|---|
TElement | |
TNativeElement |
Constructors
| Improve this Doc View SourceViewRenderer(String)
Declaration
public ViewRenderer(string tagName = "div")
Parameters
Type | Name | Description |
---|---|---|
System.String | tagName |
Properties
| Improve this Doc View SourceControl
Declaration
public TNativeElement Control { get; }
Property Value
Type | Description |
---|---|
TNativeElement |
HtmlNeedsFullEndElement
Declaration
protected override bool HtmlNeedsFullEndElement { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Goui.Forms.VisualElementRenderer<TElement>.HtmlNeedsFullEndElement
|
Improve this Doc
View Source
ManageNativeControlLifetime
Determines whether the native control is disposed of when this renderer is disposed Can be overridden in deriving classes
Declaration
protected virtual bool ManageNativeControlLifetime { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceDispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
Goui.Forms.VisualElementRenderer<TElement>.Dispose(System.Boolean)
|
Improve this Doc
View Source
OnElementChanged(ElementChangedEventArgs<TElement>)
Declaration
protected override void OnElementChanged(ElementChangedEventArgs<TElement> e)
Parameters
Type | Name | Description |
---|---|---|
ElementChangedEventArgs<TElement> | e |
Overrides
Goui.Forms.VisualElementRenderer<TElement>.OnElementChanged(Goui.Forms.ElementChangedEventArgs<TElement>)
|
Improve this Doc
View Source
OnElementPropertyChanged(Object, PropertyChangedEventArgs)
Declaration
protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | |
System.ComponentModel.PropertyChangedEventArgs | e |
Overrides
Goui.Forms.VisualElementRenderer<TElement>.OnElementPropertyChanged(System.Object, System.ComponentModel.PropertyChangedEventArgs)
|
Improve this Doc
View Source
OnRegisterEffect(PlatformEffect)
Declaration
protected override void OnRegisterEffect(PlatformEffect effect)
Parameters
Type | Name | Description |
---|---|---|
PlatformEffect | effect |
Overrides
Goui.Forms.VisualElementRenderer<TElement>.OnRegisterEffect(Goui.Forms.PlatformEffect)
|
Improve this Doc
View Source
SendVisualElementInitialized(VisualElement, Element)
Declaration
protected override void SendVisualElementInitialized(VisualElement element, Element nativeView)
Parameters
Type | Name | Description |
---|---|---|
Xamarin.Forms.VisualElement | element | |
Element | nativeView |
Overrides
Goui.Forms.VisualElementRenderer<TElement>.SendVisualElementInitialized(Xamarin.Forms.VisualElement, Goui.Html.Element)
|
Improve this Doc
View Source
SetAutomationId(String)
Declaration
protected override void SetAutomationId(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id |
Overrides
Goui.Forms.VisualElementRenderer<TElement>.SetAutomationId(System.String)
|
Improve this Doc
View Source
SetBackgroundColor(Color)
Declaration
protected override void SetBackgroundColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
Xamarin.Forms.Color | color |
Overrides
Goui.Forms.VisualElementRenderer<TElement>.SetBackgroundColor(Xamarin.Forms.Color)
|
Improve this Doc
View Source
SetControlSize(Size)
Declaration
public override void SetControlSize(Size size)
Parameters
Type | Name | Description |
---|---|---|
Xamarin.Forms.Size | size |
Overrides
Goui.Forms.VisualElementRenderer<TElement>.SetControlSize(Xamarin.Forms.Size)
|
Improve this Doc
View Source
SetNativeControl(Element)
Declaration
protected void SetNativeControl(Element element)
Parameters
Type | Name | Description |
---|---|---|
Element | element |
Implements
System.ComponentModel.INotifyPropertyChanged
Xamarin.Forms.IRegisterable
System.IDisposable