Ejemplo n.º 1
0
        public void ViewSelection(int index)
        {
            if (index >= Data.Count)
            {
                throw new Exception("Invalid operation exception. \n" +
                                    $"SetActive {index} exceed DataSource length {Data.Count}.");
            }

            Active = Data[index];
            OnActiveElementChanged?.Invoke(Active);
        }
Ejemplo n.º 2
0
 public void JSOnActiveElementChanged()
 {
     OnActiveElementChanged.InvokeAsync(null);
 }
Ejemplo n.º 3
0
 public void JSOnActiveElementChanged(ElementReference element)
 {
     OnActiveElementChanged.InvokeAsync(element);
 }