/// <summary> /// Give access to the direct sub-frames of the current window. /// </summary> /// <param name="index">Frame index</param> /// <returns></returns> public async Task <WindowInterop> Get(int index) { var jsObjectRef = await jsRuntime.GetInstancePropertyRefAsync(jsRuntimeObjectRef, $"frames[{index}]"); var windowInterop = await jsRuntime.GetInstancePropertyAsync <WindowInterop>(jsRuntimeObjectRef, $"frames[{index}]", false); windowInterop.SetJsRuntime(jsRuntime, jsObjectRef); return(windowInterop); }