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); }
public void JSOnActiveElementChanged() { OnActiveElementChanged.InvokeAsync(null); }
public void JSOnActiveElementChanged(ElementReference element) { OnActiveElementChanged.InvokeAsync(element); }