public async Task ConnectAsync(string name)
        {
            if (Status != ReduxStatus.Idle)
            {
                throw new Exception("Can not connect as the tool is not idle");
            }

            Status = ReduxStatus.Requested;

            Id = await ScriptService.InvokeAsync <object>("Skclusive.Script.DevTools.ReduxTool.connect", DotNetObjectReference.Create(this), name);
        }
Exemplo n.º 2
0
 public ValueTask <Boundry> GetAnchorBoundryAsync(ElementReference?anchorRef, ElementReference?paperRef)
 {
     return(ScriptService.InvokeAsync <Boundry>("Skclusive.Material.Popover.getAnchorBoundry", anchorRef, paperRef));
 }
Exemplo n.º 3
0
 public ValueTask <double> GetContentAnchorOffsetAsync(ElementReference?contentAnchor, ElementReference?element)
 {
     return(ScriptService.InvokeAsync <double>("Skclusive.Material.Popover.getContentAnchorOffset", contentAnchor, element));
 }