示例#1
0
 private async Task UpdateFocusZoneAsync()
 {
     try
     {
         var props = FocusZoneProps.GenerateProps(this, Id, RootElementReference);
         await jsRuntime.InvokeVoidAsync("BlazorFabricFocusZone.updateFocusZone", _registrationId, props);
     }
     catch (TaskCanceledException ex)
     {
     }
 }
示例#2
0
        private async Task <int> RegisterFocusZoneAsync()
        {
            var props = FocusZoneProps.GenerateProps(this, Id, RootElementReference);

            return(await jsRuntime.InvokeAsync <int>("BlazorFabricFocusZone.register", props, DotNetObjectReference.Create(this)));
        }
示例#3
0
 private async Task UpdateFocusZoneAsync()
 {
     Debug.WriteLine("Focuszone updating...");
     var props = FocusZoneProps.GenerateProps(this, Id, RootElementReference);
     await jsRuntime.InvokeVoidAsync("BlazorFabricFocusZone.updateFocusZone", _registrationId, props);
 }