• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Goui
    • Color
    • Colors
    • Document
    • EventTarget
    • IGouiPlugin
    • JsonConvert
    • Message
    • Message.PropertyReference
    • MessageType
    • Node
    • Session
    • Style
    • TargetEventArgs
    • TargetEventHandler
    • TextNode
    • UI
    • UI.FileContent
    • UI.StyleSelectors
    • UIConfig
    • Utilities
    • WebAssemblySession
    • WebSocketSession
    • Window
  • Goui.AspNetCore
    • ElementResult
    • WebSocketHandler
  • Goui.AspNetCore.TagHelpers
    • GouiTagHelper
  • Goui.Forms
    • DisplayAlert
    • ElementChangedEventArgs<TElement>
    • EventTracker
    • EventTracker.NativeGestureRecognizer
    • ExportCellAttribute
    • ExportImageSourceHandlerAttribute
    • ExportRendererAttribute
    • GouiTheme
    • IVisualElementRenderer
    • LinkLabel
    • LinkView
    • LocalIsolatedStorageFile
    • Platform
    • PlatformEffect
    • PlatformRenderer
    • RendererPool
    • ResourcesProvider
    • VisualElementChangedEventArgs
    • VisualElementPackager
    • VisualElementRenderer<TElement>
    • VisualElementRendererFlags
    • VisualElementTracker
  • Goui.Forms.Cells
    • CellElement
    • CellRenderer
    • EntryCellElement
    • EntryCellRenderer
    • ImageCellElement
    • ImageCellRenderer
    • SwitchCellElement
    • SwitchCellRenderer
    • TextCellElement
    • TextCellRenderer
    • ViewCellElement
    • ViewCellRenderer
  • Goui.Forms.Extensions
    • ColorExtensions
    • ElementExtensions
    • FontExtensions
    • ListViewExtensions
  • Goui.Forms.Renderers
    • ActivityIndicatorRenderer
    • BoxRenderer
    • ButtonRenderer
    • DatePickerRenderer
    • DefaultRenderer
    • EditorRenderer
    • EntryRenderer
    • FileImageSourceHandler
    • FrameRenderer
    • IImageSourceHandler
    • ImageLoaderSourceHandler
    • ImageRenderer
    • LabelRenderer
    • LinkLabelRenderer
    • LinkViewRenderer
    • ListViewRenderer
    • NavigationPageRenderer
    • PickerRenderer
    • ProgressBarRenderer
    • ScrollViewRenderer
    • SearchBarRenderer
    • SliderRenderer
    • StreamImagesourceHandler
    • SwitchRenderer
    • SwitchRenderer.SwitchElement
    • TimePickerRenderer
    • ViewRenderer
    • ViewRenderer<TElement, TNativeElement>
    • WebViewRenderer
  • Goui.Html
    • Anchor
    • Body
    • Button
    • ButtonType
    • Canvas
    • CanvasRenderingContext2D
    • CompositeOperation
    • Div
    • Element
    • Form
    • FormControl
    • Heading
    • Iframe
    • Image
    • Input
    • InputType
    • Label
    • LineCap
    • LineJoin
    • List
    • ListItem
    • Option
    • Paragraph
    • Select
    • Span
    • TextArea
    • TextInput
  • Microsoft.AspNetCore.Builder
    • GouiMiddlewareExtensions
  • WebAssembly
    • Runtime
  • Xamarin.Forms
    • Forms
    • Forms.ViewInitializedEventArgs
    • PageExtensions

Class EventTarget

Inheritance
System.Object
EventTarget
Document
CanvasRenderingContext2D
Node
Window
Implements
System.ComponentModel.INotifyPropertyChanged
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
Assembly: Goui.dll
Syntax
[JsonConverter(typeof(EventTargetJsonConverter))]
public abstract class EventTarget : INotifyPropertyChanged

Constructors

| Improve this Doc View Source

EventTarget(String)

Declaration
protected EventTarget(string tagName)
Parameters
Type Name Description
System.String tagName

Fields

| Improve this Doc View Source

IdPrefix

Declaration
public const char IdPrefix = '⦙'
Field Value
Type Description
System.Char

Properties

| Improve this Doc View Source

Id

Declaration
public string Id { get; protected set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

StateMessages

Declaration
public IReadOnlyList<Message> StateMessages { get; }
Property Value
Type Description
System.Collections.Generic.IReadOnlyList<Message>
| Improve this Doc View Source

TagName

Declaration
public string TagName { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

AddEventListener(String, TargetEventHandler)

Declaration
public void AddEventListener(string eventType, TargetEventHandler handler)
Parameters
Type Name Description
System.String eventType
TargetEventHandler handler
| Improve this Doc View Source

AddStateMessage(Message)

Declaration
protected void AddStateMessage(Message message)
Parameters
Type Name Description
Message message
| Improve this Doc View Source

Call(String, Object[])

Declaration
public void Call(string methodName, params object[] args)
Parameters
Type Name Description
System.String methodName
System.Object[] args
| Improve this Doc View Source

GetElementById(String)

Declaration
public virtual EventTarget GetElementById(string id)
Parameters
Type Name Description
System.String id
Returns
Type Description
EventTarget
| Improve this Doc View Source

OnPropertyChanged(String)

Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
Type Name Description
System.String propertyName
| Improve this Doc View Source

Receive(Message)

Declaration
public void Receive(Message message)
Parameters
Type Name Description
Message message
| Improve this Doc View Source

RemoveEventListener(String, TargetEventHandler)

Declaration
public void RemoveEventListener(string eventType, TargetEventHandler handler)
Parameters
Type Name Description
System.String eventType
TargetEventHandler handler
| Improve this Doc View Source

SaveStateMessageIfNeeded(Message)

Declaration
protected virtual bool SaveStateMessageIfNeeded(Message message)
Parameters
Type Name Description
Message message
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Send(Message)

Declaration
public void Send(Message message)
Parameters
Type Name Description
Message message
| Improve this Doc View Source

SendSet(String, Object)

Declaration
protected void SendSet(string jsPropertyName, object value)
Parameters
Type Name Description
System.String jsPropertyName
System.Object value
| Improve this Doc View Source

SetProperty<T>(ref T, T, String, String)

Declaration
protected bool SetProperty<T>(ref T backingStore, T newValue, string jsPropertyName, string propertyName = "")
Parameters
Type Name Description
T backingStore
T newValue
System.String jsPropertyName
System.String propertyName
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()
| Improve this Doc View Source

TriggerEvent(String)

Declaration
protected virtual bool TriggerEvent(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
System.Boolean
| Improve this Doc View Source

TriggerEventFromMessage(Message)

Declaration
protected virtual bool TriggerEventFromMessage(Message message)
Parameters
Type Name Description
Message message
Returns
Type Description
System.Boolean
| Improve this Doc View Source

UpdateStateMessages(Action<List<Message>>)

Declaration
protected void UpdateStateMessages(Action<List<Message>> updater)
Parameters
Type Name Description
System.Action<System.Collections.Generic.List<Message>> updater

Events

| Improve this Doc View Source

MessageSent

Declaration
public event Action<Message> MessageSent
Event Type
Type Description
System.Action<Message>
| Improve this Doc View Source

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

System.ComponentModel.INotifyPropertyChanged
  • Improve this Doc
  • View Source
Back to top Generated by DocFX