Class WeakEvent<T>

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.dll

    The WeakEvent without holding strong reference of event handler.

    public class WeakEvent<T> where T : Delegate
    Inheritance
    object
    WeakEvent<T>

    Properties

    View Source

    Count

    The count of currently added event handlers.

    Declaration
    protected int Count { get; }
    Property Value
    Type Description
    int

    Methods

    View Source

    Add(T)

    Add an event handler.

    Declaration
    public virtual void Add(T handler)
    Parameters
    Type Name Description
    T handler
    View Source

    Invoke(object, object)

    Invoke event handlers.

    Declaration
    public void Invoke(object sender, object args)
    Parameters
    Type Name Description
    object sender
    object args
    View Source

    OnCountDicreased()

    Invoked when the event handler count is decreased.

    Declaration
    protected virtual void OnCountDicreased()
    View Source

    OnCountIncreased()

    Invoked when the event handler count is increased.

    Declaration
    protected virtual void OnCountIncreased()
    View Source

    Remove(T)

    Remove last added event handler.

    Declaration
    public virtual void Remove(T handler)
    Parameters
    Type Name Description
    T handler

    Extension Methods

    EXamlExtensions.LoadFromEXaml<T>(T, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    EXamlExtensions.LoadFromEXamlPath<TXaml>(TXaml, string)
    EXamlExtensions.LoadFromEXamlPath<T>(T, Type)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX