コード例 #1
0
 public SizeWatcherInterop(IJSRuntime js, ElementReference element, Action <SKSize> callback)
     : base(js, JsFilename)
 {
     htmlElement    = element;
     htmlElementId  = element.Id;
     callbackHelper = new FloatFloatActionHelper((x, y) => callback(new SKSize(x, y)));
 }
コード例 #2
0
 private DpiWatcherInterop(IJSRuntime js)
     : base(js, JsFilename)
 {
     callbackHelper = new FloatFloatActionHelper((o, n) => callbacksEvent?.Invoke(n));
 }