@inject IJSRuntime JS

@Pic.Description

@code { [Parameter] public Pic Pic {get; set;} [Parameter] public bool Editable { get; set; } = false; [Parameter] public EditPicDialog? Dialog { get; set; } private async Task EditPic(EventArgs e){ Dialog.Pic = Pic; // await InvokeAsync(StateHasChanged); await JS.InvokeVoidAsync("ui", "#" + Dialog?.id); } public async Task ShareClick(EventArgs e){ await Share.Default.RequestAsync(new ShareTextRequest{ Uri = Pic.Url, Text = Pic.Description, Title = "I saw this on some.pics", Subject = "I saw this on some.pics" }); } }